Medium severity · published Apr 24, 2020
CVE-2020-12135
bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values
5.5
CVSS
1.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 67% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CD
C Driver · Mongodb
before 0.8 · source: NVD
WH
Whoopsie · Whoopsie Project
through 0.2.69 · source: NVD
Affected product
CD
C Driver
Mongodb
More from C Driver
8.3
CVE-2026-88036
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C Driver
8.3
CVE-2026-88034
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C++ Driver
8.3
CVE-2026-88025
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C# Driver
8.1
CVE-2026-93393
Heap overflow via oversized decrypted TLS record sequence in Windows Secure Channel stream
8.1
CVE-2026-81522
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C++ Driver