CVEfocus › CVE database › CVE-2026-96749

CVE-2026-96749Heap out-of-bounds write via signed size overflow in BSON document encoding

CVSS 8.4 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-09-24Updated 2026-09-26Assigner: mongodb

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.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

80Fixed
9Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 26.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 24.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 22.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 20.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 18.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 16.04pymongoFix pendingUBUNTU-CVE-2026-96749
Ubuntu 14.04pymongoFix pendingUBUNTU-CVE-2026-96749
Debian 14pymongoFixed4.18.2-1DEBIAN-CVE-2026-96749
Debian 13pymongoFix pendingDEBIAN-CVE-2026-96749
Debian 12pymongoFixed3.11.0-1+deb12u2DEBIAN-CVE-2026-96749
Red Hat Enterprise Linux 8python-PyMySQLFixed0:0.10.1-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-distroFixed0:1.4.0-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-docsFixed0:3.6.7-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-docutilsFixed0:0.14-12.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-noseFixed0:1.3.7-31.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-nose-docsFixed0:1.3.7-31.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-pygmentsFixed0:2.2.0-22.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python-pymongoFixed0:3.7.0-4.module+el8.10.0+25289+e70afddeRHSA-2026:102653
Red Hat Enterprise Linux 8python-pymongo-docFixed0:3.7.0-4.module+el8.10.0+25289+e70afddeRHSA-2026:102653
Red Hat Enterprise Linux 8python-sqlalchemyFixed0:1.3.2-3.module+el8.10.0+20981+3704b446RHSA-2026:102653
Red Hat Enterprise Linux 8python-sqlalchemy-docFixed0:1.3.2-3.module+el8.10.0+20981+3704b446RHSA-2026:102653
Red Hat Enterprise Linux 8python-virtualenvFixed0:15.1.0-23.module+el8.10.0+22619+61b70790RHSA-2026:102653
Red Hat Enterprise Linux 8python-virtualenv-docFixed0:15.1.0-23.module+el8.10.0+22619+61b70790RHSA-2026:102653
Red Hat Enterprise Linux 8python-wheelFixed1:0.31.1-3.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-PyMySQLFixed0:0.10.1-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-bsonFixed0:3.7.0-4.module+el8.10.0+25289+e70afddeRHSA-2026:102653
Red Hat Enterprise Linux 8python3-distroFixed0:1.4.0-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-docsFixed0:3.6.7-2.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-docutilsFixed0:0.14-12.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-noseFixed0:1.3.7-31.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-pygmentsFixed0:2.2.0-22.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-pymongoFixed0:3.7.0-4.module+el8.10.0+25289+e70afddeRHSA-2026:102653
Red Hat Enterprise Linux 8python3-pymongo-gridfsFixed0:3.7.0-4.module+el8.10.0+25289+e70afddeRHSA-2026:102653
Red Hat Enterprise Linux 8python3-scipyFixed0:1.0.0-21.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-sqlalchemyFixed0:1.3.2-3.module+el8.10.0+20981+3704b446RHSA-2026:102653
Red Hat Enterprise Linux 8python3-virtualenvFixed0:15.1.0-23.module+el8.10.0+22619+61b70790RHSA-2026:102653
Red Hat Enterprise Linux 8python3-wheelFixed1:0.31.1-3.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python3-wheel-wheelFixed1:0.31.1-3.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python36Fixed0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python36-debugFixed0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python36-develFixed0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8python36-rpm-macrosFixed0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2026:102653
Red Hat Enterprise Linux 8scipyFixed0:1.0.0-21.module+el8.10.0+20784+edafcd43RHSA-2026:102653
AlmaLinux 8python-nose-docsFixed1.3.7-31.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python-pymongo-docFixed3.7.0-4.module_el8.10.0+4390+02a348a7ALSA-2026:102653
AlmaLinux 8python-sqlalchemy-docFixed1.3.2-3.module_el8.10.0+3769+3838165bALSA-2026:102653
AlmaLinux 8python-virtualenv-docFixed15.1.0-23.module_el8.10.0+3937+b6a3652fALSA-2026:102653
AlmaLinux 8python3-PyMySQLFixed0.10.1-2.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-bsonFixed3.7.0-4.module_el8.10.0+4390+02a348a7ALSA-2026:102653
AlmaLinux 8python3-distroFixed1.4.0-2.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-docsFixed3.6.7-2.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-docutilsFixed0.14-12.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-noseFixed1.3.7-31.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-pygmentsFixed2.2.0-22.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-pymongoFixed3.7.0-4.module_el8.10.0+4390+02a348a7ALSA-2026:102653
AlmaLinux 8python3-pymongo-gridfsFixed3.7.0-4.module_el8.10.0+4390+02a348a7ALSA-2026:102653
AlmaLinux 8python3-scipyFixed1.0.0-21.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-sqlalchemyFixed1.3.2-3.module_el8.10.0+3769+3838165bALSA-2026:102653
AlmaLinux 8python3-virtualenvFixed15.1.0-23.module_el8.10.0+3937+b6a3652fALSA-2026:102653
AlmaLinux 8python3-wheelFixed1:0.31.1-3.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python3-wheel-wheelFixed1:0.31.1-3.module_el8.9.0+3700+efebe9fdALSA-2026:102653
AlmaLinux 8python36Fixed3.6.8-39.module_el8.10.0+3769+3838165bALSA-2026:102653
AlmaLinux 8python36-debugFixed3.6.8-39.module_el8.10.0+3769+3838165bALSA-2026:102653
AlmaLinux 8python36-develFixed3.6.8-39.module_el8.10.0+3769+3838165bALSA-2026:102653
AlmaLinux 8python36-rpm-macrosFixed3.6.8-39.module_el8.10.0+3769+3838165bALSA-2026:102653
Rocky Linux 8python-nose-docsFixed0:1.3.7-31.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python-pymongo-docFixed0:3.7.0-4.module+el8.10.0+40501+3e16d3feRLSA-2026:102653
Rocky Linux 8python-sqlalchemy-docFixed0:1.3.2-3.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python-virtualenv-docFixed0:15.1.0-23.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-PyMySQLFixed0:0.10.1-2.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-bsonFixed0:3.7.0-4.module+el8.10.0+40501+3e16d3feRLSA-2026:102653
Rocky Linux 8python3-distroFixed0:1.4.0-2.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-docsFixed0:3.6.7-2.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python3-docutilsFixed0:0.14-12.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-noseFixed0:1.3.7-31.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-pygmentsFixed0:2.2.0-22.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python3-pymongoFixed0:3.7.0-4.module+el8.10.0+40501+3e16d3feRLSA-2026:102653
Rocky Linux 8python3-pymongo-gridfsFixed0:3.7.0-4.module+el8.10.0+40501+3e16d3feRLSA-2026:102653
Rocky Linux 8python3-scipyFixed0:1.0.0-21.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python3-sqlalchemyFixed0:1.3.2-3.module+el8.10.0+1602+b47e27faRLSA-2026:102653
Rocky Linux 8python3-virtualenvFixed0:15.1.0-23.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python3-wheelFixed1:0.31.1-3.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python3-wheel-wheelFixed1:0.31.1-3.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python36Fixed0:3.6.8-39.module+el8.10.0+1910+234ad790RLSA-2026:102653
Rocky Linux 8python36-debugFixed0:3.6.8-39.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python36-develFixed0:3.6.8-39.module+el8.10.0+1592+61442852RLSA-2026:102653
Rocky Linux 8python36-rpm-macrosFixed0:3.6.8-39.module+el8.10.0+1910+234ad790RLSA-2026:102653
PyPI librarypymongoFixed4.18.2PYSEC-2026-4296

What the vendor says

As published in the CVE record by mongodb, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.