]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
make local mutable copies for cargs / cparams in do_connect
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 1 Mar 2026 18:05:21 +0000 (13:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Mar 2026 01:00:40 +0000 (20:00 -0500)
commit94ed75eec98246c0c8a5cda8a82a779bd8b4f1c8
treeeb39d63d3769550fe076cd618679607b8194698f
parent01e3ca2618740a586b940b28bb7996911f1d9582
make local mutable copies for cargs / cparams in do_connect

Fixed a critical issue in :class:`.Engine` where connections created in
conjunction with the :meth:`.ConnectionEvents.do_connect` event listeners
would receive shared, mutable collections for the connection arguments,
leading to a variety of potential issues including unlimited growth of the
argument list as well as elements within the parameter dictionary being
shared among concurrent connection calls.  In particular this could impact
do_connect routines making use of complex mutable authentication
structures.

Fixes: #13144
Change-Id: I1549dae36e8e7e6cf50fdaf796659b53e7b78234
doc/build/changelog/unreleased_20/13144.rst [new file with mode: 0644]
lib/sqlalchemy/engine/create.py
test/engine/test_execute.py