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
Link | Resource |
---|---|
https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560 | Exploit Third Party Advisory |
https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577 | Patch Third Party Advisory |
https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch | Patch Third Party Advisory |
https://usn.ubuntu.com/4450-1/ |
Configurations
History
No history.
Information
Published : 2020-04-24 01:15
Updated : 2024-02-04 21:00
NVD link : CVE-2020-12135
Mitre link : CVE-2020-12135
CVE.ORG link : CVE-2020-12135
JSON object : View
Products Affected
whoopsie_project
- whoopsie
mongodb
- c_driver
CWE
CWE-190
Integer Overflow or Wraparound