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

- Severity: Medium 5.9 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-09-03T15:01:21.882Z
- Modified: 2026-09-22T16:00:19.730Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## Description

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.

(As written by CVE List.)

## Affected

- MongoDB C Driver: from 1.10.0 before 1.30.9; from 2.0.0 before 2.5.2
- mongodb c_driver: from 1.10.0 before 1.30.9; from 2.0.0 before 2.5.2

## Every score

- mongodb: CVSS:4.0 5.9 Medium `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`
- mongodb: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://jira.mongodb.org/browse/CDRIVER-6405> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-84965](https://www.cve.org/CVERecord?id=CVE-2026-84965), CVE Terms of Use, modified 2026-09-03
- NVD: [CVE-2026-84965](https://nvd.nist.gov/vuln/detail/CVE-2026-84965), Public domain, modified 2026-09-22

---

Page: https://cve.day/CVE-2026-84965 · Whole record: https://cve.day/CVE-2026-84965.json · Rebuilt by cve.day 2026-11-25T22:59:36.199Z
