NetSight
medium5.5

CVE-2020-12135

bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values.

Impact

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

VendorProductAffected versions
Whoopsie ProjectWhoopsie
through 0.2.69
MongodbC Driver
before 0.8

Weakness classification

References