CVE-2026-143881: Authentication identity confusion via NUL-byte injection in SASL PLAIN credentials
The MongoDB PHP 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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Only deployments that use SASL PLAIN authentication are affected. The issue is relevant where a party can choose the user name or password values that an application passes to the MongoDB PHP Driver.
What does an attacker need to exploit this behavior?
The attacker must be able to supply login values to the application and include NUL characters that alter the SASL PLAIN message field boundaries. Authenticating as another account still requires that account's password.
Does this allow authentication as another user without knowing that user's password?
No. Although the receiving system may interpret a different login name and secret than the application supplied, authentication as a different account still requires that account's password.