Monitor 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
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.

Original title
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...
Original 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.
osv CVSS3.1 5.5
Published: 24 Apr 2020 · Updated: 11 Apr 2026 · First seen: 11 Apr 2026