CVE-2017-2891 Use after free in Mongoose

Critical 9.8 Published Updated

A use-after-free in Cesanta Mongoose allows remote code execution via a crafted HTTP POST request to a CGI target.

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

What is CVE-2017-2891?

CVE-2017-2891 is a critical use after free vulnerability in Cesanta Mongoose, published on 7 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. An ordinary HTTP POST request with a CGI target can cause a reuse of previously freed pointer potentially resulting in remote code execution. An attacker needs to send this HTTP request over the network to trigger this vulnerability.

Weakness: CWE-416

Which versions are affected by CVE-2017-2891?

It affects 1 product.

Products include Cesanta Mongoose.

How do I fix CVE-2017-2891?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2017-2891 being exploited?

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

All Cesanta Mongoose vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-2891, GHSA-rwjm-353c-64rx.

Is CVE-2017-2891 in your software?

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

Check your SBOMs for free