CVE-2020-12135
mediumpriority · track · 22EPSS 0.012 · 67 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- http://www.nsfocus.net/vulndb/49199cnnvd
- https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560cnnvd
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577cnnvd
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-12135cnnvd
- https://packetstormsecurity.com/files/158763/Ubuntu-Security-Notice-USN-4450-1.htmlcnnvd
- https://usn.ubuntu.com/4450-1/cnnvd
- https://vigilance.fr/vulnerability/Whoopsie-memory-corruption-via-File-Parsing-33004cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan