# CVE-2026-84965: Heap write primitive via size round-up wrap during JSON parsing on 32-bit builds

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-03 · Modified: 2026-09-03
- Aliases: UBUNTU-CVE-2026-84965, DEBIAN-CVE-2026-84965, ALPINE-CVE-2026-84965
- Record: https://cvemate.com/vulnerability/CVE-2026-84965 · JSON: https://cvemate.com/vulnerability/CVE-2026-84965/json

## Description

```text
An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.
```

## Signals

- CVSS: 5.9 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.087%, percentile 0.351%, 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

- alpine mongo-c-driver (Alpine Linux): \< 1.30.14-r0
- debian mongo-c-driver (Debian): All versions (No fix recorded) \| \< 1.30.4-1+deb13u5 \| \< 2.5.2-1
- ubuntu mongo-c-driver (Ubuntu): All versions (No fix recorded)
- mongodb c driver: ≥ 1.10.0, \< 1.30.9 \| ≥ 2.0.0, \< 2.5.2

## References

- <https://jira.mongodb.org/browse/CDRIVER-6405>
- <https://ubuntu.com/security/CVE-2026-84965>
- <https://www.cve.org/CVERecord?id=CVE-2026-84965>
- <https://security-tracker.debian.org/tracker/CVE-2026-84965>
- <https://security.alpinelinux.org/vuln/CVE-2026-84965>

---

Data as of 2026-12-05T05:10:59.376Z. 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
