RubySec

Providing security resources for the Ruby community

CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password

MongoDB Ruby Driver does not neutralize NUL characters in the user name and password

Published: November 19, 2026

SECURITY IDENTIFIERS

GEM

mongo

SEVERITY

CVSS v3.x: 3.7 (Low)

UNAFFECTED VERSIONS

< 2.0.0

PATCHED VERSIONS

>= 2.26.2

DESCRIPTION

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.

RELATED