CVE-2020-12135
Whoopsie Project Whoopsie vulnerability
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.
Affected products
Whoopsie, C Driver. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Whoopsie Project Whoopsie runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cb · Patch
- launchpadlibrarian.net/474887364/bson-fix-overflow.patch · Patch
- bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560 · Exploit
- usn.ubuntu.com/4450-1/
- nvd.nist.gov/vuln/detail/CVE-2020-12135
- cve.org/CVERecord?id=CVE-2020-12135
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.