CVE-2020-12135: mongodb c driver Integer Overflow or Wraparound
Vulnerability summary
CVE-2020-12135 is a medium (CVSS 5.5) Integer Overflow or Wraparound vulnerability in mongodb c driver. EPSS estimates a 1.17% chance of exploitation in the next 30 days, higher than 68.3% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 24-04-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.17%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.17% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.launchpad.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- duo-unixAll versions (No fix recorded)
- whoopsie< 0.2.52.5ubuntu0.5 | < 0.2.62ubuntu0.5 | < 0.2.69ubuntu0.1
Debian1 product
- duo-unixAll versions (No fix recorded)
Mongodb1 product
- c driver< 0.8
Whoopsie_project1 product
- whoopsie≤ 0.2.69
4 vendors · 5 products
References
8 links- launchpadlibrarian.net/474887364/bson-fix-overflow.patchX Refsource MISCREPORTPatchThird Party Advisory
- github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8caX Refsource MISCREPORTPatchThird Party Advisory