CVE-2026-96749pymongo Integer Overflow or Wraparound
NVD
Vulnerability 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.
CVSS v4.0 Base Metrics — Score 7.5
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 8.4)
CVSS v3.1 Base Metrics — Score 8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAttack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- pymongo < 4.18.2
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run pymongo and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Sep 24, 2026Published
- Oct 5, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new pymongo CVEsYou are reading CVE-2026-96749. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-v4x9-3549-crwv
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-96749
- Patchhttps://github.com/mongodb/mongo-python-driver/pull/3066
- Patchhttps://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7
- Patchhttps://github.com/mongodb/mongo-python-driver/commit/6ab44be0e97c9d1d5a23725c4978fb25f3249485
- Referencehttps://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst
- Referencehttps://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2
- Referencehttps://www.mongodb.com/community/forums/t/pymongo-4-18-2-released/343732
- Referencehttps://github.com/advisories/GHSA-v4x9-3549-crwv
Data last checked: Oct 6, 2026 01:57 UTC