Out-of-bounds read in MongoDB Python Driver BSON decoding crashes
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | Python Driver | 0.10.3 – 4.18.2 | — | No fix listed | CNA |
| — | pymongo (PyPI) | 3.9.0 to before 4.18.3 | 4.18.3 | Patch available | GHSA-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
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 →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 16.2 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 17.1 | Affected | No fix planned: Out of support scope |
Timeline
- 2026-10-09 Threatist record created from CVE-2026-106435
- 2026-10-09 CISA SSVC decision points changed
- 2026-10-09 Priority changed: MEDIUM → LOW
- 2026-10-16 CVSS score added · NVD
- 2026-10-27 Alias added: GHSA-98qm-wvgf-w4cf
References
Advisory 2
Other 5
- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-98qm-wvgf-w4cf
- https://github.com/mongodb/mongo-python-driver/pull/3109
- https://github.com/mongodb/mongo-python-driver/commit/bb8d4e195275e75bd94ebeffb53cc747d357fcf4
- https://github.com/mongodb/mongo-python-driver
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.3
More MongoDB Python Driver vulnerabilities
- 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
- CVE-2026-106435 · CVE Program
- CVE-2026-106435 · NVD
- FIRST EPSS
- GHSA-98qm-wvgf-w4cf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-106435 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences