CVE-2020-12135 Integer overflow in n/a

Medium 5.5 Published Updated

An integer overflow in the bson library allows attackers to cause denial of service or potentially execute code via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-12135?

CVE-2020-12135 is a medium-severity vulnerability in n/a, published on 24 Apr 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-190

Which versions are affected by CVE-2020-12135?

It affects 2 products.

Products include Mongodb C Driver, Whoopsie Project Whoopsie.

How do I fix CVE-2020-12135?

Upgrade to a fixed version.

Is CVE-2020-12135 being exploited?

There is no known exploitation of CVE-2020-12135 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-12135, GHSA-f54q-h8mw-5h8w, UBUNTU-CVE-2020-12135.

Is CVE-2020-12135 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free