{"id":"CVE-2026-96749","aliases":["CVE-2026-96749","GHSA-v4x9-3549-crwv","PYSEC-2026-4296"],"related":[],"kind":"vulnerability","state":"published","title":"Heap out-of-bounds write via signed size overflow in BSON document encoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-24T18:18:13.077Z","modified":"2026-10-15T14:56:20.520Z","severity":{"scorer":"mongodb","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"mongodb","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"rating":"HIGH"},{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"1.9.0","fixed":"4.18.2","status":"affected"}],"vendor":"MongoDB","product":"Python Driver","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.18.2"}],"ecosystem":"PyPI","package":"pymongo","purl":"pkg:pypi/pymongo","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.18.2"}],"ecosystem":"PyPI","package":"pymongo","purl":"pkg:pypi/pymongo","source":"pysec"}],"references":[{"url":"https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-v4x9-3549-crwv","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96749","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/pull/3066","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/commit/6ab44be0e97c9d1d5a23725c4978fb25f3249485","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://www.mongodb.com/community/forums/t/pymongo-4-18-2-released/343732","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pymongo","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v4x9-3549-crwv","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-25T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-96749","url":"https://www.cve.org/CVERecord?id=CVE-2026-96749","licence":"CVE Terms of Use","modified":"2026-09-26T03:55:41.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v4x9-3549-crwv","url":"https://github.com/advisories/GHSA-v4x9-3549-crwv","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:20.520Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-96749","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96749","licence":"Public domain","modified":"2026-09-26T04:17:52.260Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4296","url":"https://osv.dev/vulnerability/PYSEC-2026-4296","licence":"CC-BY-4.0","modified":"2026-10-15T14:45:13.512Z"}],"updatedAt":"2026-11-25T22:59:40.900Z","epss":{"score":0.00188,"percentile":0.08796,"date":"2026-12-01T12:00:22.000Z"}}