Read the docs

Out-of-bounds read in BSON decoding in MongoDB Python Driver

Priority MEDIUM 45CWE-125Published · Updated

Key facts

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

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

Summary

The MongoDB Python Driver, from 1.9.0 before 4.20.2, has an out-of-bounds read (CWE-125) in the native C BSON decoding extension. An unauthenticated party who can supply crafted BSON data to the decoder can cause the application process to terminate. In some configurations, nearby process memory may be included in error messages, which may result in limited unintended disclosure of data.

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

Description from the CNA

An out-of-bounds read in the native C BSON decoding extension of the MongoDB Python Driver may allow an unauthenticated party who can supply crafted BSON data to the decoder to cause the application process to terminate. In some configurations, nearby process memory may be included in error messages, which may result in limited unintended disclosure of data.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00598 42nd percentileScored 2026-11-30
Fix Fixed Python Driver (MongoDB): 4.20.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
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
MongoDBPython Driver1.9.0 to before 4.20.24.20.2Patch availableCNA
  • Python Driver VendorMongoDB Affected 1.9.0 to before 4.20.2 Fixed in 4.20.2 Patch available CNA

Remediation

MongoDB Python Driver users should upgrade to version 4.20.2 or later.

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

  • Fix · CNA Python Driver (MongoDB) Fixed in 4.20.2

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Python Driver 4.20.2

    2 records Highest priority Priority MEDIUM 2 MEDIUM

    Other records, highest priority first

    • TI-2026-98382 Improper certificate revocation check in MongoDB Python DriverPriority MEDIUM 41

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135898
  2. 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

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