# GHSA-24H2-R54J-CV24: PYTHON-6073 Authentication identity smuggling via NUL-byte injection in SASL PLAIN payload

- Database: GitHub
- Severity: CVSS 3.7 (Low)
- Published: 2026-11-19
- Modified: 2026-11-19

## Tracked as

- [CVE-2026-129926](https://cve.now/CVE-2026-129926.md): MongoDB Python Driver identity confusion in SASL PLAIN authentication

## Affected versions

- pymongo (PyPI): from 2.6, fixed in 4.20.1

## Description

### Summary

Someone who controls a login username or password can use NUL-byte injection to smuggle extra hidden fields into the authentication message and potentially log in as a different identity, on LDAP/PLAIN setups.

### Details

See https://jira.mongodb.org/browse/SECBUG-4280.

### Proof of concept

See https://jira.mongodb.org/browse/SECBUG-4280 for full details. Requires a deployment using LDAP/PLAIN and an application that does not validate against NUL bytes in credentials.

### Impact

An unauthenticated party supplying login input to a PLAIN/LDAP pass-through application can re-segment the authentication message so the server authenticates an identity (and checks a password) different from what the application validated. Identity smuggling and audit-attribution corruption, up to full authentication bypass depending on the receiver's NUL handling.

## References

- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-24h2-r54j-cv24

Page: https://cve.now/GHSA-24H2-R54J-CV24
