CVE-2012-6495 MoinMoin Multiple vulnerable to directory traversal

Medium 6.0 Published Updated

Authenticated users with write permissions can overwrite arbitrary files via path traversal, potentially leading to remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-6495?

CVE-2012-6495 is a medium-severity path traversal vulnerability in n/a, published on 3 Jan 2013. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Multiple directory traversal vulnerabilities in the (1) twikidraw (action/twikidraw.py) and (2) anywikidraw (action/anywikidraw.py) actions in MoinMoin before 1.9.6 allow remote authenticated users with write permissions to overwrite arbitrary files via unspecified vectors. NOTE: this can be leveraged with CVE-2012-6081 to execute arbitrary code.

Weakness: CWE-22

Which versions are affected by CVE-2012-6495?

3 open source packages ship an affected version, including moin and Moin. It affects 1 product.

PackageAffectedFixed in
moin PyPIAll versions1.9.6
moin PyPIAll versions1.9.6
Moin PyPIAll versions1.9.6

Products include Moinmo Moinmoin.

How do I fix CVE-2012-6495?

Upgrade moin to 1.9.6 or later.

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

Is CVE-2012-6495 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-6495 exists.

Public exploit code: 2 Exploit-DB entries.

Sources

Also known as GHSA-6gx4-29v9-g9q5, PYSEC-2013-7.

Is CVE-2012-6495 in your software?

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

Check your SBOMs for free