NUL character injection alters SASL PLAIN credentials in MongoDB PHP Driver
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The MongoDB PHP Driver does not neutralize NUL characters in the user name and password values it places into the SASL PLAIN authentication message (CWE-158). A party who can choose the login values an application passes to the driver can shift where the message fields begin and end, so the receiving system may read a login name and secret that differ from the supplied values. Authenticating as a different account still requires that account's password, and only deployments that use SASL PLAIN authentication are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | PHP Driver | 1.0.0 to before 1.21.16; 2.0.0 to before 2.1.16; 2.2.0 to before 2.5.10 | 1.21.16, 2.1.16, 2.5.10 | Patch available | CNA |
- PHP Driver VendorMongoDB Affected 1.0.0 to before 1.21.16; 2.0.0 to before 2.1.16; 2.2.0 to before 2.5.10 Fixed in 1.21.16, 2.1.16, 2.5.10 Patch available CNA
Remediation
Upgrade MongoDB PHP Driver from 1.0.0 before 1.21.16 to 1.21.16, from 2.0.0 before 2.1.16 to 2.1.16, and from 2.2.0 before 2.5.10 to 2.5.10.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA PHP Driver (MongoDB) Fixed in 1.21.16, 2.1.16, 2.5.10
Timeline
- 2026-12-03 Threatist record created from CVE-2026-143881
- 2026-12-03 Alias added: GHSA-h88p-rgxr-7rrm
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-143881 · CVE Program
- CVE-2026-143881 · NVD
- GHSA-h88p-rgxr-7rrm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences