CVE-2026-96749
Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
- Record
CVE-2026-96749- CVSS 4.0
- 7.5 High
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 - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2026-86348
7.5
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.
- Record
EUVD-2026-86348- CVSS 4.0
- 7.5 High
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-v4x9-3549-crwv
7.5
PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
- Record
GHSA-v4x9-3549-crwv- CVSS 4.0
- 7.5 High
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 - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2026-96749- CVSS 4.0
- 7.5 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSV
7.5
Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
- Record
CVE-2026-96749- CVSS 4.0
- 7.5 High
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 - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-96749
7.5
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.
- Record
DEBIAN-CVE-2026-96749- CVSS 4.0
- 7.5 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-02
Show 9 moreShow less
OSVGHSA-v4x9-3549-crwv
7.5
PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
- Record
GHSA-v4x9-3549-crwv- CVSS 4.0
- 7.5 High
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 - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVPYSEC-2026-4296
7.5
PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding
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.
- Record
PYSEC-2026-4296- CVSS 4.0
- 7.5 High
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 - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-96749
7.5
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.
- Record
UBUNTU-CVE-2026-96749- CVSS 4.0
- 7.5 High
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 - CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-105110 No score
CVE-2026-96749 affecting package python-pymongo 4.2.0-9
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.
- Record
AZL-105110- Updated
- 2026-11-05
OSVCLSA-2026-1792396649 No score
TuxCare security update for pymongo (2 CVEs)
TuxCare rebuilt pymongo to address 2 CVEs. Fixed in 3.13.0.post2+tuxcare.
- Record
CLSA-2026-1792396649- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11935-1 No score
python313-pymongo-4.18.2-1.1 on GA media
These are all security issues fixed in the python313-pymongo-4.18.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11935-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:22003-1 No score
Security update for python-pymongo
This update for python-pymongo fixes the following issues:
Changes in python-pymongo:
- CVE-2026-96749: integer overflow in BSON document encoding allows an unprivileged user to write outside the bounds of an allocated buffer (bsc#1282845)
- CVE-2026-96748: host injection in connection string leading to database connection redirection due to improper connection string parsing (bsc#1282827)
- CVE-2026-96747: improper handling of key management endpoint values
ending in
.sockallows users with write access to the encryption key metadata to open connections to local sockets on the application host (bsc#1282844)
- Record
openSUSE-SU-2026:22003-1- Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2026-96749 No score
CVE-2026-96749 in pymongo - Patched by Root
Root has patched CVE-2026-96749 in the pymongo package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2026-96749- Updated
- 2026-11-05
OSVSUSE-SU-2026:4398-1 No score
Security update for python-pymongo
This update for python-pymongo fixes the following issues:
- CVE-2026-96747: improper handling of key management endpoint values ending in
.sockallows users with write access to the encryption key metadata to open connections to local sockets on the application host (bsc#1282844). - CVE-2026-96748: host injection in connection string leading to database connection redirection due to improper connection string parsing (bsc#1282827).
- CVE-2026-96749: integer overflow in BSON document encoding allows an unprivileged user to write outside the bounds of an allocated buffer (bsc#1282845).
- Record
SUSE-SU-2026:4398-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pymongoPyPI |
before 4.18.2 | 4.18.2 |
python-pymongoAzure Linux:3 |
through 4.2.0-9 | None known |
pymongoTuxCare:PyPI From an advisory covering 2 CVEs |
3.13.0 up to 3.13.0.post2+tuxcare, plus listed versions 3.13.0.post1+tuxcare |
3.13.0.post2+tuxcare |
pymongoDebian:12 |
All versions, plus listed versions 3.11.0-13.11.0-1+deb12u14.10.1-14.10.1-24.10.1-3 Show 14 moreShow less4.10.1-44.10.1-54.10.1-64.15.3-14.15.3-24.15.4-14.15.4-24.15.5-14.16.0-14.17.0-14.18.1-14.18.2-14.7.3-14.7.3-2 |
None known |
pymongoDebian:13 |
All versions, plus listed versions 4.10.1-64.15.3-14.15.3-24.15.4-14.15.4-2 Show 5 moreShow less4.15.5-14.16.0-14.17.0-14.18.1-14.18.2-1 |
None known |
pymongoDebian:14 |
before 4.18.2-1, plus listed versions 4.10.1-64.15.3-14.15.3-24.15.4-14.15.4-2 Show 4 moreShow less4.15.5-14.16.0-14.17.0-14.18.1-1 |
4.18.2-1 |
pymongoPyPI |
before 4.18.2, plus listed versions 0.1.1pre0.1.2pre0.100.10.10.10.2 Show 45 moreShow less0.10.30.110.11.10.11.20.11.30.120.130.140.14.10.14.20.150.15.10.15.20.160.1pre0.2pre0.3.1pre0.3pre0.4pre0.5.1pre0.5.2pre0.5.3pre0.5pre0.60.70.7.10.7.20.80.8.10.90.9.10.9.20.9.30.9.40.9.50.9.60.9.71.01.11.1.11.1.21.101.10.11.111.2 |
4.18.2 |
pymongoRoot:PyPI |
before 4.18.1+aikido.2 | 4.18.1+aikido.24.17.0+aikido.14.17.0+aikido.24.9.2+aikido.14.9.2+aikido.24.6.3+aikido.14.6.3+aikido.24.16.0+aikido.14.6.3+aikido.34.8.0+aikido.14.10.1+aikido.24.18.0+aikido.14.8.0+aikido.24.18.0+aikido.24.9.2+aikido.3 |
python-pymongoSUSE:Linux Enterprise Module for Package Hub 15 SP7 From an advisory covering 3 CVEs |
before 3.11.0-150300.3.6.1 | 3.11.0-150300.3.6.1 |
pymongoUbuntu:14.04:LTS |
All versions, plus listed versions 2.6-12.6.2-12.6.3-12.6.3-1build1 |
None known |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
pymongoUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.0.3-13.2-13.2-1build13.2-1ubuntu0.1~esm1 |
None known |
pymongoUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 3.4.0-1build23.6.1+dfsg1-13.6.1+dfsg1-1ubuntu0.1~esm1 |
None known |
pymongoUbuntu:20.04:LTS |
All versions, plus listed versions 3.7.1-1.13.7.1-1.1build13.10.1-0ubuntu23.10.1-0ubuntu2.1 |
None known |
pymongoUbuntu:22.04:LTS |
All versions, plus listed versions 3.11.0-1build23.11.0-1build33.11.0-1build43.11.0-1ubuntu0.22.04.1 |
None known |
pymongoUbuntu:24.04:LTS |
All versions, plus listed versions 3.11.0-1build63.11.0-1build73.11.0-1build83.11.0-1ubuntu0.24.04.1 |
None known |
pymongoUbuntu:26.10 |
All versions, plus listed versions 4.16.0-1build14.17.0-1 |
None known |
pymongoUbuntu:26.04:LTS |
All versions, plus listed versions 4.10.1-64.15.3-14.15.3-24.15.5-14.16.0-14.16.0-1build1 |
None known |
python-pymongoopenSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 4.18.2-1.1 | 4.18.2-1.1 |
python-pymongoopenSUSE:Leap 16.0 From an advisory covering 3 CVEs |
before 4.6.3-bp160.2.1 | 4.6.3-bp160.2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-96749 is a high vulnerability (CVSS 7.5) in Mongodb Python Driver, published September 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.19%, the 8th percentile. Fixed in pymongo 4.18.2.
References
github.com/mongodb/mongo-python-driver/security/advisories/GHSA-v4x9-3549-crwv
github.com/mongodb/mongo-python-driver/releases/tag/4.18.2
github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst
nvd.nist.gov/vuln/detail/CVE-2026-96749
github.com/mongodb/mongo-python-driver/pull/3066
github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7
Show 16 moreShow less
github.com/mongodb/mongo-python-driver/commit/6ab44be0e97c9d1d5a23725c4978fb25f3249485
mongodb.com/community/forums/t/pymongo-4-18-2-released/343732
github.com/advisories/GHSA-v4x9-3549-crwv
github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96749.json
security-tracker.debian.org/tracker/CVE-2026-96749
github.com/mongodb/mongo-python-driver
pypi.org/project/pymongo
suse.com/support/update/announcement/2026/suse-su-20264398-1
bugzilla.suse.com/1282827
bugzilla.suse.com/1282844
bugzilla.suse.com/1282845
suse.com/security/cve/CVE-2026-96747
suse.com/security/cve/CVE-2026-96748
suse.com/security/cve/CVE-2026-96749
ubuntu.com/security/CVE-2026-96749
cve.org/CVERecord?id=CVE-2026-96749
Left out here: 122 versions. The JSON record has them.