Red Hat VEX
RHVEX-CVE-2026-96749
pymongo: pymongo: Out-of-bounds write via integer overflow during BSON encoding
This advisory was withdrawn on 24 November 2026.
Details
A flaw was found in pymongo. An integer overflow exists in the bundled native extension for Binary JSON (BSON) document encoding when processing an unusually large amount of data. An unprivileged attacker who can submit oversized data to an application for encoding can trigger an arithmetic overflow, resulting in a write outside the boundaries of an allocated memory buffer. This issue can lead to arbitrary code execution within the application process or a denial of service (DoS) via an application crash.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | python-pymongo | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python-pymongo-doc | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python2-bson | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python2-pymongo | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python2-pymongo-gridfs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python3-bson | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python3-pymongo | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python3-pymongo-gridfs | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-96749
- https://bugzilla.redhat.com/show_bug.cgi?id=2540688
- https://www.cve.org/CVERecord?id=CVE-2026-96749
- https://nvd.nist.gov/vuln/detail/CVE-2026-96749
- https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2