Out-of-bounds Read in MongoDB Libbson
CVE-2018-16790
_bson_iter_next_internal in bson-iter.c in libbson 1.12.0, as used in MongoDB mongo-c-driver and other products, has a heap-based buffer over-read via a crafted bson buffer.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS 0.021, 82.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- MongoDB Libbson — versions 1.12.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd… (Patch)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- jira.mongodb.org/browse/CDRIVER-2819 (Third Party Advisory, Issue Tracking)
- lists.debian.org/debian-lts-announce/2025/05/msg00012.html