CVE-2020-12135
publishedbson: integer overflow in bson_ensure_space() parameter bytesNeeded
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Ubuntu | bionic | libwhoopsie0 | Advisory build | 0.2.62ubuntu0.5 | USN-4450-1 |
| Ubuntu | bionic | whoopsie | Advisory build | 0.2.62ubuntu0.5 | USN-4450-1 |
| Ubuntu | focal | libwhoopsie0 | Advisory build | 0.2.69ubuntu0.1 | USN-4450-1 |
| Ubuntu | focal | whoopsie | Advisory build | 0.2.69ubuntu0.1 | USN-4450-1 |
| Ubuntu | xenial | libwhoopsie0 | Advisory build | 0.2.52.5ubuntu0.5 | USN-4450-1 |
| Ubuntu | xenial | whoopsie | Advisory build | 0.2.52.5ubuntu0.5 | USN-4450-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch
- USN-4450-1 https://usn.ubuntu.com/4450-1/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 324a94932f779caefc501bf8663e4d6c7d444c19ca16ee83bb3f401adf11b2c2
- Ingested
- 23 Sep 2026, 07:48:21 UTC
- Source record
- Official CVE record