CVE-2020-12135
MEDIUMwhoopsie < 0.2.69 - Integer Overflow via bson_ensure_space
Title source: llmDescription
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.
References (4)
Core 4
Core References
Exploit, Third Party Advisory x_refsource_misc
https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560
Patch, Third Party Advisory x_refsource_misc
https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch
Patch, Third Party Advisory x_refsource_misc
https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577
Vendor Advisory vendor-advisory
x_refsource_ubuntu
https://usn.ubuntu.com/4450-1/
Scores
CVSS v3
5.5
EPSS
0.0117
EPSS Percentile
63.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Details
CWE
CWE-190
Status
published
Products (2)
mongodb/c_driver
< 0.8
whoopsie_project/whoopsie
< 0.2.69
Published
Apr 24, 2020
Tracked Since
Feb 18, 2026