CVE-2012-5641 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can read arbitrary files via directory traversal in MochiWeb, affecting applications like CouchDB.

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

What is CVE-2012-5641?

CVE-2012-5641 is a medium-severity path traversal vulnerability in n/a, published on 18 Mar 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in the partition2 function in mochiweb_util.erl in MochiWeb before 2.4.0, as used in Apache CouchDB before 1.0.4, 1.1.x before 1.1.2, and 1.2.x before 1.2.1, allows remote attackers to read arbitrary files via a ..\ (dot dot backslash) in the default URI.

Weakness: CWE-22

Which versions are affected by CVE-2012-5641?

It affects 2 products.

Products include Apache Couchdb, Mochiweb Project Mochiweb.

How do I fix CVE-2012-5641?

No fix has been published for CVE-2012-5641 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2012-5641 being exploited?

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

Sources

Also known as GHSA-99r9-958v-rr3x.

Is CVE-2012-5641 in your software?

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

Check your SBOMs for free