Read the docs

BSON Ruby Driver type confusion in Extended JSON parsing

Priority LOW 38CWE-843Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

The BSON Ruby Driver's Extended JSON parser has a type-confusion flaw (CWE-843) in its DBPointer handling. A party who can supply parser input can influence how a serialized document is framed, so content placed in one value may be read back as additional or replacement document fields. An unauthenticated attacker who supplies input to an application that parses untrusted Extended JSON and stores the result can cause unintended modification of stored data. CVSS 4.0 base score 8.7 (HIGH).

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

Description from the CNA

A type-confusion weakness in the Extended JSON parsing component of BSON for Ruby allows a party who can supply parser input to influence how a serialized document is framed. Content placed in one value may be read back as additional or replacement document fields. An unauthenticated party supplying input to an application that parses untrusted Extended JSON and stores the result may cause unintended modification of stored data.

Why it matters now

EPSS 0.00498 35th percentileScored 2026-11-30
Fix Fixed Ruby Driver (MongoDB): 5.2.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBRuby Driver4.8.0 to before 5.2.15.2.1Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 4.8.0 to before 5.2.1 Fixed in 5.2.1 Patch available CNA

Remediation

Upgrade MongoDB Ruby Driver versions from 4.8.0 before 5.2.1 to 5.2.1 or later.

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

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

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135226

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

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences