// Security Advisory Triage
PyMongo heap overflow fixed in 4.18.2
GitHub advisories — pip · published 2026-10-06 18:26 UTC
WHAT CHANGEDGitHub published CVE-2026-96749 on 5 October 2026, a high-severity heap out-of-bounds write in PyMongo triggered by signed size overflow during BSON document encoding. The vulnerability is patched in version 4.18.2.
WHY IT MATTERSA heap overflow is exploitable for arbitrary code execution or denial of service. PyMongo is the standard MongoDB driver for Python and runs in most services that touch MongoDB, making this a memory safety issue in a widely deployed dependency.
WHAT TO DOUpgrade PyMongo to 4.18.2 or later in any service that encodes BSON documents. Grep your requirements files and lock files for pymongo<4.18.2 and schedule the update for this sprint.
Model-reported confidence 95% (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-v4x9-3549-crwv +summary: PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding +severity: high +published_at: 2026-10-05T23:47:10Z +cve_id: CVE-2026-96749 +vulnerabilities[].package.name: pymongo +vulnerabilities[].first_patched_version: 4.18.2
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | PyMongo is a core database driver in Python dependency trees. Memory safety vulnerability with patch available. |
| signals | known CVE with assigned ID · high severity rating · heap out-of-bounds write — memory safety issue · PyMongo is a standard dependency in Python services · first patched version specified (4.18.2) · published advisory with future date |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |