Skip to main content

MongoDB Ruby Driver EUVDEUVD-2026-130683

| CVE-2026-129925 MEDIUM
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-11-19 mongodb GHSA-w74x-9mw3-q43f
6.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply login values containing NUL bytes
  2. Exploit
    Driver builds SASL PLAIN message without neutralizing NUL
  3. Execution
    Field boundaries shift within authentication message
  4. Impact
    Receiving 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Ruby Driver 2.0.0 <2.26.2

Affected Packages

euvd ruby_driver fix: 2.26.2

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

Vendor (mongodb) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 19, 2026 - 21:19 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
widely used MongoDB language driver; only SASL PLAIN deployments actually affected
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy