CVE-2019-12951 Memory corruption in n/a

Critical 9.8 Published Updated

A heap-based buffer overflow in the Mongoose library's MQTT parser allows attackers to execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-12951?

CVE-2019-12951 is a critical memory corruption vulnerability in Cesanta Mongoose, published on 24 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Mongoose before 6.15. The parse_mqtt() function in mg_mqtt.c has a critical heap-based buffer overflow.

Weakness: CWE-787

Which versions are affected by CVE-2019-12951?

It affects 1 product.

Products include Cesanta Mongoose.

How do I fix CVE-2019-12951?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-12951 being exploited?

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

All Cesanta Mongoose vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-12951, GHSA-hp76-j5v2-prm5, UBUNTU-CVE-2019-12951.

Is CVE-2019-12951 in your software?

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

Check your SBOMs for free