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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | Python Driver | 1.9.0 – < 4.18.2 | 4.18.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pymongo | 4.18.2-1 | — |
| Debian 13 | pymongo | No fix yet | — |
| Debian 12 | pymongo | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pymongo | No fix yet | — |
| Ubuntu 26.04 LTS | pymongo | No fix yet | — |
| Ubuntu 24.04 LTS | pymongo | No fix yet | — |
| Ubuntu 22.04 LTS | pymongo | No fix yet | — |
| Ubuntu 20.04 LTS | pymongo | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | pymongo | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pymongo | No fix yet | — |
| Ubuntu Pro 16.04 LTS | pymongo | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | python-pymongo | 3.11.0-150300.3.6.1 | SUSE-SU-2026:4398-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-pymongo | 4.18.2-1.1 | openSUSE-SU-2026:11935-1 |
| openSUSE Leap 16.0 | python-pymongo | 4.6.3-bp160.2.1 | openSUSE-SU-2026:22003-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-bson +3 | 3.10.1-5.amzn2023.0.5 | ALAS2023-2026-3155 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-pymongo | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | datadog-agent-7.77-core-integrations +3 | No fix yet | — |
| Wolfi rolling | datadog-agent-7.81-core-integrations | 7.81.3-r10 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pymongo | < 4.18.2 | 4.18.2 | GHSA-v4x9-3549-crwv |
Advisories 5
- ALAS2023-2026-3155 Important: python-pymongo security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- WID-SEC-2026-3583 MongoDB Treiber (Python Driver, PHP Driver, C Driver, Compass und Laravel): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 4, 2026
- openSUSE-SU-2026:22003-1 Security update for python-pymongo SUSE / openSUSE Security Updates · Oct 1, 2026
- openSUSE-SU-2026:11935-1 python313-pymongo-4.18.2-1.1 on GA media SUSE / openSUSE Security Updates · Oct 1, 2026
- SUSE-SU-2026:4398-1 Security update for python-pymongo SUSE / openSUSE Security Updates · Sep 30, 2026