Read the docs

Sensitive information in error messages from MongoDB Ruby Driver

Priority MEDIUM 59CWE-209Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-209.

Summary

The MongoDB Ruby Driver from 2.0.3 before 2.26.2 is affected. Its connection string parser can place credential material from the application's configuration into parsing error messages, where the existing redaction does not apply. A local user with low privileges who can read the application's error output or logs can obtain database credential text along with deployment details, and no database authentication is needed.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

An information exposure weakness in the connection string handling of the MongoDB Ruby Driver can place credential material from the application's own configuration into the text of a parsing error, where an existing redaction control does not apply. A party able to read the application's error output or logs may thereby obtain database credential text together with deployment coordinates. The condition arises entirely within the embedding application process and requires no database authentication.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00464 32nd percentileScored 2026-11-30
Fix Fixed Ruby Driver (MongoDB): 2.26.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBRuby Driver2.0.3 to before 2.26.22.26.2Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 2.0.3 to before 2.26.2 Fixed in 2.26.2 Patch available CNA

Remediation

Upgrade MongoDB Ruby Driver to version 2.26.2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA Ruby Driver (MongoDB) Fixed in 2.26.2

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135225
  2. 2026-11-25 Alias added: GHSA-5c8v-f98c-2whp
  3. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources