CVE-2026-84965 PUBLISHED

Heap write primitive via size round-up wrap during JSON parsing on 32-bit builds

Assigner: mongodb
Reserved: 02.09.2026 Published: 03.09.2026 Updated: 03.09.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.9

Product Status

Vendor MongoDB
Product C Driver
Versions Default: unaffected
  • affected from 1.10.0 to 1.30.9 (excl.)
  • affected from 2.0.0 to 2.5.2 (excl.)

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound CWE