Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.5
CVE-2020-12135: BSON before 0.8: Integer Overflow in bson_ensure_space() Parameter
CVE-2020-12135 · published 6 years ago
Summary
A weakness in how BSON handles large data can cause an error when processing specially crafted data, potentially leading to application crashes or unexpected behavior. This affects developers using BSON version 0.7 and earlier, who should update to a newer version to ensure safe data processing. Updating to BSON version 0.8 or later is recommended.
What to do
- Update canonical whoopsie to version 0.2.52.5ubuntu0.5.
- Update canonical whoopsie to version 0.2.62ubuntu0.5.
- Update canonical whoopsie to version 0.2.69ubuntu0.1.
- Update mongodb c_driver to version 0.8 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | whoopsie_project | whoopsie |
<= 0.2.69 cpe:2.3:a:whoopsie_project:whoopsie:*:*:*:*:*:*:*:* |
| – | mongodb | c_driver |
< 0.8 cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:* |
| Ubuntu:16.04:LTS | canonical | whoopsie |
< 0.2.52.5ubuntu0.5 Fix: upgrade to 0.2.52.5ubuntu0.5
|
| Ubuntu:16.04:LTS | canonical | duo-unix | All versions |
| Ubuntu:18.04:LTS | canonical | whoopsie |
< 0.2.62ubuntu0.5 Fix: upgrade to 0.2.62ubuntu0.5
|
| Ubuntu:20.04:LTS | canonical | whoopsie |
< 0.2.69ubuntu0.1 Fix: upgrade to 0.2.69ubuntu0.1
|
Original advisory text
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 overflo...
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.
References
- https://usn.ubuntu.com/4450-1/ URL
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d8... Patch
- https://ubuntu.com/security/CVE-2020-12135 Third Party Advisory
- https://ubuntu.com/security/notices/USN-4450-1 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2020-12135 Third Party Advisory
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch Patch
- https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560 Exploit
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-190Integer Overflow
Timeline
Published24 Apr 2020
Updated4 Nov 2026
First seen11 Apr 2026
Track software like this
Free during beta