Read the docs

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

Priority LOW 25CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 4 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-125 and the CVSS impact.

Summary

The MongoDB Python Driver from 0.10.3 through 4.18.2 and pymongo from 3.9.0 before 4.18.3 have an out-of-bounds read (CWE-125). The binary accelerator reads past a buffer when decoding BSON with a truncated regular-expression element that lacks a trailing NUL byte. An actor who can supply BSON to decode or decode_all can terminate the application process when the C extension is loaded. Normal wire-protocol use does not reach this code.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the CNA

The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00094 0th percentileScored 2026-11-07
Fix Partial pymongo (PyPI): 4.18.3Red Hat: 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
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
MongoDBPython Driver0.10.3 – 4.18.2—No fix listedCNA
—pymongo (PyPI)3.9.0 to before 4.18.34.18.3Patch availableGHSA-98qm-wvgf-w4cf
  • Python Driver VendorMongoDB Affected 0.10.3 – 4.18.2 Fixed in — No fix listed CNA
  • pymongo (PyPI) Vendor— Affected 3.9.0 to before 4.18.3 Fixed in 4.18.3 Patch available GHSA-98qm-wvgf-w4cf

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mongodb:python_driver:*:*:*:*:*:mongodb:*:*before 4.18.3VulnerableMongoDB
  • cpe:2.3:a:mongodb:python_driver:*:*:*:*:*:mongodb:*:* Versions before 4.18.3 Vulnerable ·MongoDB

Remediation

Upgrade pymongo to version 4.18.3. The sources list no fixed version for MongoDB Python Driver. Red Hat OpenShift AI (RHOAI) has no fix available, and Red Hat OpenStack Platform 13 (Queens), 16.2 and 17.1 have no fix planned.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

  • Fix · GHSA-98qm-wvgf-w4cf pymongo (PyPI) Fixed in 4.18.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 16.2AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 17.1AffectedNo fix planned: Out of support scope

Timeline

  1. 2026-10-09 Threatist record created from CVE-2026-106435
  2. 2026-10-09 CISA SSVC decision points changed
  3. 2026-10-09 Priority changed: MEDIUM → LOW
  4. 2026-10-16 CVSS score added · NVD
  5. 2026-10-27 Alias added: GHSA-98qm-wvgf-w4cf

References

  • TI-2026-60054 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver CVSS 4.0MEDIUM 6.1

Sources