{"answers":{"affected":"3 open source packages ship an affected version, including pymongo.","exploited":"There is no known exploitation of CVE-2026-96749 in the wild and no public exploit code.","fix":"Upgrade pymongo to 4.18.2 or later.","what":"CVE-2026-96749 is a high-severity vulnerability in MongoDB Python Driver, published on 24 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-96749 and fix it if it is affected.\n\nWhat it is: CVE-2026-96749 is a high-severity vulnerability in MongoDB Python Driver, published on 24 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-96749 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pymongo (PyPI): affected all versions; fixed in 4.18.2\n- pymongo (PyPI): affected all versions; fixed in 4.18.2\n- pymongo (PyPI): affected all versions; fixed in 4.18.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-96749/ (Markdown: https://insights.sbomify.com/CVE-2026-96749/index.md)","id":"CVE-2026-96749","markdown":"https://insights.sbomify.com/CVE-2026-96749/index.md","name":"CVE-2026-96749","record":{"aliases":["AZL-105110","DEBIAN-CVE-2026-96749","ECHO-edca-11e2-60b0","GHSA-v4x9-3549-crwv","MINI-vcrv-gmw5-45rr","PYSEC-2026-4296","ROOT-APP-PYPI-CVE-2026-96749","UBUNTU-CVE-2026-96749"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"MongoDB Python Driver","requires_auth":"none","summary":"An integer overflow in the MongoDB Python Driver's BSON encoding allows unprivileged attackers to trigger out-of-bounds writes, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Heap out-of-bounds write via signed size overflow in BSON document encoding","id":"CVE-2026-96749","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"integer_overflow","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Shell script injection via server-supplied database name in Open MongoDB shell","id":"CVE-2026-96750"},"packages":[{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":null,"source":"GHSA-v4x9-3549-crwv"},{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"GHSA-v4x9-3549-crwv"},{"ecosystem":"PyPI","fixed":["4.18.2"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"PYSEC-2026-4296"}],"prev":{"headline":"Connection redirection via percent-encoded delimiter injection in connection string hosts","id":"CVE-2026-96748"},"products":["Python Driver"],"published":"2026-09-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-26","vendors":["MongoDB"]},"summary":"An integer overflow in the MongoDB Python Driver's BSON encoding allows unprivileged attackers to trigger out-of-bounds writes, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2026-96749/"}