VulnerabilityModified
CVE-2020-12135
In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input.
MEDIUM 5.5EPSS 1.17%
Does this matter?
Lower severity and a low EPSS score (1.17%). Track it; it rarely justifies an emergency change on its own.
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 3.1
- 5.5 MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS
- 1.17% probability · 66th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-190
- Affected
- whoopsie project/whoopsie · mongodb/c driver
- Source
- cve@mitre.org
References
- https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560Exploit, Third Party Advisory
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577Patch, Third Party Advisory
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patchPatch, Third Party Advisory
- https://usn.ubuntu.com/4450-1/
- https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560Exploit, Third Party Advisory
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577Patch, Third Party Advisory
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patchPatch, Third Party Advisory
- https://usn.ubuntu.com/4450-1/
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.