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.
{
"cna_assigner": "mongodb",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96749.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "1.9.0"
},
{
"fixed": "4.18.2"
}
],
"source": "AFFECTED_FIELD"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96749.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"313937259246690792033577136582351186585",
"234329394194398214755767972931697391149",
"205556081000686217523895440862638542136",
"302023848532793530739864523738009957657",
"229744238530264298010148702012829395894",
"289566845193397341247368850510323650999",
"61373660942318224200464922469282204245",
"1377657727013732018681638084855295901",
"100276382119081194731334726091889527063",
"49150128683341948243584376855512715628",
"282432437761933900027570562394692470410",
"161491051014087500058901029099508351084",
"79846178355188504907962075812862958840",
"339487331988713150960607797990096285080"
],
"threshold": 0.9
},
"id": "CVE-2026-96749-5d3a46dc",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7",
"target": {
"file": "bson/buffer.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "306396228315852703488053070048897984029",
"length": 295
},
"id": "CVE-2026-96749-ccd4fb31",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7",
"target": {
"file": "bson/buffer.c",
"function": "buffer_assure_space"
}
}
]
"2026-09-26T08:07:53Z"