CVE-2026-129926

NameCVE-2026-129926
DescriptionThe MongoDB Python Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter where the fields of that message begin and end. This may result in a receiving system reading a login name and secret that differ from the values the application supplied. Authenticating as a different account still requires that account's password. Only deployments that use SASL PLAIN authentication are affected.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pymongo (PTS)bookworm3.11.0-1+deb12u1vulnerable
trixie4.10.1-6vulnerable
forky, sid4.19.0-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pymongosource(unstable)(unfixed)

Notes

https://jira.mongodb.org/browse/PYTHON-6073
Fixed by: https://github.com/mongodb/mongo-python-driver/commit/138396e204acc90bacd482d612d84bd781e54542 (4.20.1)

Search for package or bug name: Reporting problems