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

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.
Severity
5.5 Medium
CVSS 3.1: 5.5 (OSV)
Timeline
Published24 Apr 2020
Updated11 Apr 2026
First seen11 Apr 2026
Sources
Monitor software like this
Free during beta