// Security Advisory Triage

pymongo 4.18.3 patches out-of-bounds read in BSON decoding

GitHub advisories — pip · published 2026-10-27 18:06 UTC
ACTION NEEDED PATCH_NOW SECURITY
WHAT CHANGEDGitHub published GHSA-98qm-wvgf-w4cf on 2026-10-27 for CVE-2026-106435, a high-severity out-of-bounds read in pymongo's BSON decoder triggered by a malformed Regex element. First patched version is 4.18.3.
WHY IT MATTERSAn attacker who can control BSON input to your application can trigger memory disclosure or a crash. Services that decode BSON from untrusted sources — MongoDB wire protocol handlers, message queues, or API endpoints accepting BSON — are exposed.
WHAT TO DOUpgrade pymongo to 4.18.3 or later in services that decode BSON from any source you do not fully control. Verify exposure first if pymongo is only a transitive dependency with no BSON parsing in your code paths.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-98qm-wvgf-w4cf
+summary: MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element
+severity: high
+published_at: 2026-10-27T15:36:35Z
+cve_id: CVE-2026-106435
+vulnerabilities[].package.name: pymongo
+vulnerabilities[].first_patched_version: 4.18.3
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPyMongo is a standard MongoDB driver in production services. Out-of-bounds read via malformed input is exploitable.
signalspymongo in dependency tree of normal services · high severity rating · out-of-bounds read in BSON decoding · first patched version specified (4.18.3) · new advisory with CVE assigned
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)