Vulnerability Details : CVE-2020-12135
Potential exploit
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 category: Overflow
Products affected by CVE-2020-12135
- cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*
- cpe:2.3:a:whoopsie_project:whoopsie:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-12135
0.20%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 40 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-12135
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:N/A:P |
8.6
|
2.9
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST |
CWE ids for CVE-2020-12135
-
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-12135
-
https://usn.ubuntu.com/4450-1/
USN-4450-1: Whoopsie vulnerabilities | Ubuntu security notices | Ubuntu
-
https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch
Patch;Third Party Advisory
-
https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560
Bug #1872560 “integer overflow in whoopsie 0.2.69” : Bugs : whoopsie package : UbuntuExploit;Third Party Advisory
-
https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577
don't mix up int and size_t (first pass to fix that) · 10gen-archive/mongo-c-driver-legacy@1a1f5e2 · GitHubPatch;Third Party Advisory
Jump to