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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-24 · Modified: 2026-09-26
- Aliases: GHSA-v4x9-3549-crwv, UBUNTU-CVE-2026-96749, DEBIAN-CVE-2026-96749, CGA-2m9r-288p-2fpx, CGA-55r9-4597-6wh5, CGA-6f3w-jgx5-h4c6, CGA-9w92-95q4-w93w, CGA-f36r-rr57-gxj7, CGA-fqvm-8p9p-fr64, CGA-hvv8-g3w7-42w6, CGA-p37h-hw29-rmxp, CGA-vh43-8vh8-542w, CGA-wxx3-25m9-8xm4, CGA-2cpq-84q7-5r2c, CGA-3pww-jfxh-xxq2, CGA-4jrx-5rpg-g83h, CGA-552p-gwj3-389f, CGA-5mhf-r786-73r9, CGA-6rxp-jj84-4xxr, CGA-7wcv-4m57-24hm, CGA-838x-pf47-3pff, CGA-89j7-7g3w-6mr7, CGA-8f6g-c59x-6p3h, CGA-9p38-vcjw-p4rr, CGA-9v62-gxvj-cjp7, CGA-9vf7-v5rp-p2pq, CGA-ch58-vh2h-6g6g, CGA-f7rf-jq2c-w8wx, CGA-g7r6-3hjr-v5mx, CGA-g7wx-999g-v5f2, CGA-gh5j-7f4q-9cr3, CGA-hj7x-x5f8-mc95, CGA-jwv8-97g5-c2fh, CGA-m26g-m4mm-xcg7, CGA-qvw8-33wc-4prm, CGA-r588-3g82-mq7w, CGA-vjcm-2f46-57pj, CGA-vq43-6gmx-hh9r, CGA-w79c-hq7v-3pgx, CGA-wj59-5rxj-vgpv, CGA-wx99-9r8j-jfwx, CGA-xv3r-56p3-x846, CGA-xv74-fj77-fm3h, CGA-xx72-4qr6-443p, CGA-xxqv-xgjm-ccfh, PYSEC-2026-4296, RHSA-2026:102653
- Record: https://cvemate.com/vulnerability/CVE-2026-96749 · JSON: https://cvemate.com/vulnerability/CVE-2026-96749/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.188%, percentile 8.768%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 69)

- chainguard datadog-agent-7.77-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.78-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.79-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.80-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.81-core-integrations (Chainguard): \< 7.81.3-r10
- chainguard datadog-agent-7.82-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.83-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.84-core-integrations (Chainguard): \< 7.84.1-r1
- chainguard datadog-agent-fips-7.77-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.78-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.79-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.80-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.81-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.82-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.83-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.84-core-integrations (Chainguard): All versions (No fix recorded) \| \< 7.84.2-r2
- chainguard elastic-connectors-8.19 (Chainguard): \< 8.19.23-r0
- chainguard elastic-connectors-9.5 (Chainguard): \< 9.5.4-r1
- chainguard elastic-connectors-fips-8.19 (Chainguard): \< 8.19.23-r0
- chainguard elastic-connectors-fips-9.5 (Chainguard): \< 9.5.4-r1

## References (first 20 of 21)

- <https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-v4x9-3549-crwv>
- <https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2>
- <https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96749>
- <https://github.com/mongodb/mongo-python-driver/pull/3066>
- <https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7>
- <https://github.com/mongodb/mongo-python-driver/commit/6ab44be0e97c9d1d5a23725c4978fb25f3249485>
- <https://github.com/mongodb/mongo-python-driver>
- <https://www.mongodb.com/community/forums/t/pymongo-4-18-2-released/343732>
- <https://ubuntu.com/security/CVE-2026-96749>
- <https://www.cve.org/CVERecord?id=CVE-2026-96749>
- <https://security-tracker.debian.org/tracker/CVE-2026-96749>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96749.json>
- <https://pypi.org/project/pymongo>
- <https://github.com/advisories/GHSA-v4x9-3549-crwv>
- <https://access.redhat.com/errata/RHSA-2026:102653>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2540688>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_102653.json>
- <https://access.redhat.com/security/cve/CVE-2026-96749>

---

Data as of 2026-12-05T05:17:53.239Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
