CVE-2020-12135 Integer overflow in n/a
An integer overflow in the bson library allows attackers to cause denial of service or potentially execute code via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-12135?
CVE-2020-12135 is a medium-severity vulnerability in n/a, published on 24 Apr 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-190
Which versions are affected by CVE-2020-12135?
It affects 2 products.
Products include Mongodb C Driver, Whoopsie Project Whoopsie.
How do I fix CVE-2020-12135?
Upgrade to a fixed version.
Is CVE-2020-12135 being exploited?
There is no known exploitation of CVE-2020-12135 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2026-93393 Heap overflow via oversized decrypted TLS record sequence in Windows Secure Channel stream
- CVE-2026-6691 MongoDB C Driver Cyrus SASL Canonicalization Buffer Overflow
- CVE-2026-84964 Heap corruption via OCSP request double free from crafted multi-URL certificate in TLS client
- CVE-2024-7553 Accessing Untrusted Directory May Allow Local Privilege Escalation
- CVE-2026-93395 Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
Sources
Also known as DEBIAN-CVE-2020-12135, GHSA-f54q-h8mw-5h8w, UBUNTU-CVE-2020-12135.