{"id":"CVE-2026-96749","published":"2026-09-24T18:18:13Z","modified":"2026-09-26T03:55:41Z","title":"Heap out-of-bounds write via signed size overflow in BSON document encoding","vendor":"MongoDB","product":"Python Driver","tier":"tail","description":{"text":"An integer overflow in the BSON document encoding component of the MongoDB Python Driver's bundled native extension may occur when a single document is built from an unusually large amount of caller-supplied data. Size arithmetic is performed in a signed 32-bit type, and the guard meant to catch the overflow is written in a form whose behavior is not defined by the C language standard. A party with no privileges who can place a very large value into data that an application encodes may, depending on how the native extension was built, cause a write outside the bounds of an allocated buffer inside the application's own process.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00188,"percentile":0.0858,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-v4x9-3549-crwv","tags":[]},{"url":"https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2","tags":[]},{"url":"https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":1.72},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB","product":"Python Driver","versions":[">= 1.9.0, < 4.18.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-25T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymongo","vulnerableRanges":["<4.18.2"],"patched":["4.18.2"],"from":["GHSA-v4x9-3549-crwv","PYSEC-2026-4296"],"provenance":"source"}],"summary":{"text":"The MongoDB Python Driver's bundled native BSON encoding extension contains a flaw in which signed 32-bit size arithmetic can overflow when a single document is built from an unusually large amount of caller-supplied data, and the overflow guard relies on undefined C behaviour. An unprivileged party able to supply a very large value to data an application encodes can, depending on how the native extension was built, trigger a heap out-of-bounds write inside the application's own process, with no user interaction required and no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:17Z"},"euvd":{"id":"EUVD-2026-86348","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-88029","published":"2026-09-10","fixed":"4.18.1","kev":false,"link":{"from":"CVE-2026-88029","to":"CVE-2026-96749","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pymongo","fromFixed":"4.18.1","toFixed":"4.18.2","daysApart":14}]}},{"cve":"CVE-2026-96747","published":"2026-09-24","fixed":"4.18.2","kev":false},{"cve":"CVE-2026-96748","published":"2026-09-24","fixed":"4.18.2","kev":false},{"cve":"CVE-2026-96749","published":"2026-09-24","fixed":"4.18.2","kev":false},{"cve":"CVE-2026-106435","published":"2026-10-08","fixed":"4.18.3","kev":false}],"package":"PyPI:pymongo"}}