CVE-2026-129923
Authentication identity confusion via NUL-byte injection in SASL PLAIN credentials
Medium · 6.3Fix available
- CVSS
- 6.3
- EPSS
- 0.23% (p15)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-19
- Product
- MongoDB Rust Driver
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Description
The MongoDB Rust 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.
Fixed in
1.2.5 · 2.8.2 · 3.10.2
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Rust Driver | >=1.2.0, <1.2.5 | 1.2.5 |
| vendor | Rust Driver | >=2.0.0-alpha, <2.8.2 | 2.8.2 |
| vendor | Rust Driver | >=3.0.0-beta, <3.10.2 | 3.10.2 |