Skip to content

CVE-2026-129924 Credential exposure via unmasked connection string in driver parse-error messages for the Ruby driver

MediumCVSS 6.8 EPSS 0.15%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Ubuntu

Description

The MongoDB Ruby driver can include unmasked connection string content in the error it raises when a connection string cannot be parsed. If that connection string carries a secret, the secret may be disclosed in cleartext through the application's error output or logs. No privileges on the driver and no network access are needed to produce the error; a party able to read the application's error output may obtain the secret.

Upgrade path

5 packages: 1 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ruby-mongo(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ruby-mongo(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ruby-mongo(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ruby-mongo(Ubuntu 26.10) All versions No fix listed No fix yet
MongoDB Ruby Driver >= 2.0.3, < 2.26.2 2.26.2 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Ruby Driver >= 2.0.3, < 2.26.2 2.26.2
ubuntu/ruby-mongo(Ubuntu:22.04) All versions No fix listed
ubuntu/ruby-mongo(Ubuntu:24.04) All versions No fix listed
ubuntu/ruby-mongo(Ubuntu:26.04) All versions No fix listed
ubuntu/ruby-mongo(Ubuntu:26.10) All versions No fix listed

References