Integer overflow in MongoDB C Driver
CVE-2020-12135
bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.012 (66.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 67th percentile — 66.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560 (Exploit, Third Party Advisory)
- launchpadlibrarian.net/474887364/bson-fix-overflow.patch (Patch, Third Party Advisory)
- github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913… (Patch, Third Party Advisory)
- usn.ubuntu.com/4450-1/ (vendor-advisory)
Frequently asked questions
- What is CVE-2020-12135?
- CVE-2020-12135 is a medium-severity vulnerability in MongoDB C Driver, classified under Integer Overflow or Wraparound. CVSS score: 5.5/10. Published 2020-04-24.
- How severe is CVE-2020-12135?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2020-12135 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.