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 VendorProductAffected 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.
Fix within
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)
Severity
5.5 Medium
Exploitation
1% chance of attack within 30 days
Type
CWE-190Integer Overflow
Timeline
Published24 Apr 2020
Updated4 Nov 2026
First seen11 Apr 2026
Sources
CVE-2020-12135 · NVD
Track software like this
Free during beta