Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply login values containing NUL bytes
-
ExploitDriver builds SASL PLAIN message without neutralizing NUL
-
ExecutionField boundaries shift within authentication message
-
ImpactReceiving system parses different username and secret
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
|
| Exploitation Conditions | Exploitation requires that the deployment uses SASL PLAIN authentication (the only affected mechanism) and that the attacker can choose or influence the username and password values the application hands to the MongoDB Ruby Driver. The trigger is injection of unneutralized NUL characters into those values to shift SASL PLAIN message field boundaries. Key limiting factors: impact is confined to integrity (field confusion) with no confidentiality or availability loss; authenticating as a different account still requires that account's actual password; and the CVSS marks high attack complexity (AC:H) plus a present attack requirement (AT:P), so default deployments not using SASL PLAIN, or applications that do not pass attacker-controlled login values, are not exposed. |
| Impact | This is a medium-severity (CVSS 4.0 6.3) integrity/field-confusion issue, not a high-priority emergency. The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) pairs network reach with high attack complexity and a specific attack requirement (AT:P) - namely that the deployment uses SASL PLAIN authentication and that an attacker can influence the login values the application passes. Impact is limited to low integrity (VI:L) with no confidentiality (VC:N) or availability (VA:N) effect, which is consistent with the description: the flaw lets message field boundaries shift so a receiving system may read a different username/secret, but authenticating as another account still requires that account's password, blocking straightforward account takeover. The vuln.today decision label is 'this_month' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed proof-of-concept are present in the input; the only reference is the MongoDB Jira tracker RUBY-3953, which is a vendor advisory, not verified exploit code. Net: a real but bounded defect for the narrow set of Ruby-driver deployments using SASL PLAIN - prioritize patching on a normal monthly cadence rather than as an urgent out-of-band fix. |
| Exploit ScenarioDerived | In an application that uses the MongoDB Ruby Driver with SASL PLAIN authentication and forwards user-chosen username/password values, an attacker embeds NUL characters in those values. Because the driver does not neutralize NUL bytes, the SASL PLAIN message field boundaries shift, causing the receiving system to parse a username and secret different from what the application intended. No public exploit identified at time of analysis; realistic abuse is constrained by the high attack complexity and the requirement that the attacker control the submitted login values. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
NUL-byte injection in the MongoDB Ruby Driver's SASL PLAIN authentication message can let values that an application passes as username and password shift the field boundaries of the wire message, so the receiving MongoDB server may parse a login name and secret different from what the application supplied. Only deployments that authenticate with SASL PLAIN are exposed, and the attacker must be able to choose or influence the login values the application hands to the driver; even then, impersonating a different account still requires that account's real password. Impact is integrity-only field confusion with no confidentiality or availability loss (CVSS 4.0 6.3, CVSS:3.1 6.3, AC:H/AT:P), there is no CISA KEV entry and no public exploit identified at time of analysis, and the current priority is remediation within the monthly cycle rather than emergency action.
RemediationAI
No vendor-released patch version is identified in the available data; the only vendor reference is JIRA RUBY-3953 (https://jira.mongodb.org/browse/RUBY-3953), which should be tracked for the fixed driver release and its exact version before upgrading. Because exploitation is limited to the SASL PLAIN mechanism, the most direct compensating control is to stop using SASL PLAIN and authenticate with SCRAM-SHA-256 (or SCRAM-SHA-1) instead, which removes the NUL-delimited message entirely; the trade-off is that server-side users and connection strings must be reconfigured for the new mechanism and any external identity integration built around PLAIN must be reworked. Additionally, reject or strip NUL bytes from username and password values at the application boundary before they reach the driver, and avoid sourcing those values from untrusted input - this is inexpensive but only protects paths where the application actually controls the values, and any legitimate credential containing a NUL would be refused. Neither measure replaces applying the vendor fix once RUBY-3953 identifies a patched driver version.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-158 (Improper Neutralization of Null Byte or NUL Character) in the MongoDB Ruby Driver's construction of the SASL PLAIN authentication payload. SASL PLAIN (RFC 4616) is a simple cleartext-mechanism whose message is a sequence of NUL-delimited fields - authorization identity, authentication identity (username), and password - so the NUL byte is the structural delimiter that tells the server where one field ends and the next begins. The driver places the caller-supplied username and password into that message without neutralizing embedded NUL characters, so values containing NUL can inject extra delimiters and change how the server segments the message, potentially causing it to read a different login name and secret than the application intended. The cryptographic secret is not bypassed: authenticating as another account still requires that account's password, which is why the assessed impact is limited to integrity (VI:L) with no confidentiality or availability effect. Per the CPE entry cpe:2.3:a:mongodb:ruby_driver:*:*:*:*:*:*:*:* the CPE does not constrain a version range, and only deployments configured for SASL PLAIN authentication are affected; deployments using other mechanisms such as SCRAM never build this message. The trigger is confined to the described NUL injection into login values; no other exploitation path is described in the available sources.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable NUL injection into SASL PLAIN needs attacker-controlled login values and that specific config (AC:H), no privileges (PR:N); only low integrity impact, no confidentiality or availability loss.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
The MongoDB Ruby 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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-130683
GHSA-w74x-9mw3-q43f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB