Out-of-bounds read and write via undersized BSON buffer reservation in MongoDB C Driver (MongoDB C Driver)

CVE-2026-106437
MEDIUM 5.9

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
mongodb
NVD status
Analyzed

Description

The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who can influence the length supplied by an embedding application can cause the application to terminate or read or corrupt adjacent process memory. Reaching this issue requires the application to pass an undersized value to bson_reserve_buffer and then perform an affected operation.

Weaknesses (CWE)

  • CWE-191 — Integer Underflow (Wrap or Wraparound)

References

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 5.9CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:Nmongodb
CVSS 3.1MEDIUM 6.2CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Hmongodb
CVSS 4.0MEDIUM 5.9CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cna@mongodb.com (Secondary)
CVSS 3.1MEDIUM 6.2CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HNVD · cna@mongodb.com (Secondary)
CVSS 3.1HIGH 7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NNVD · nvd@nist.gov (Primary)

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
MongoDB · C Driveraffected 1.4.0 < 1.30.13 ; affected 2.0.0 < 2.5.6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD