CVE-2012-6081: Moin MoinMoin Multiple Unrestricted File Upload Vulnerability
MODERATECVE-2012-6081 is a MODERATE (CVSS 6.3) moinmoin multiple unrestricted file upload vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Moin libraries in the PyPI ecosystem. The issue involves moinmoin multiple unrestricted file upload vulnerabilities. Remediation is available by upgrading affected packages to version 1.9.6.
CVE-2012-6081 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:F).
How to Fix CVE-2012-6081
To remediate this vulnerability, upgrade all affected Moin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install moin>=1.9.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show moin
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2012-6081, inspect your installed packages using pip:
pip show moin
Analyze the terminal output to locate any version of Moin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.6), your application is affected.
Note: The pip show moin command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Moin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-6081 Affected Moin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moin
|
PyPI |
< 1.9.6
|
1.9.6
|
References
Frequently Asked Questions
What is CVE-2012-6081?
Which Moin versions are affected?
What version fixes CVE-2012-6081?
Is moin affected?
What is the CVSS score of CVE-2012-6081?
What CWE is associated with CVE-2012-6081?
How can I check PyPI dependencies for CVE-2012-6081?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2c4-jgmm-fvq3",
"modified" : "2024-09-26T15:06:35Z",
"published" : "2022-05-17T04:56:26Z",
"aliases" : [ "CVE-2012-6081" ],
"summary" : "MoinMoin Multiple unrestricted file upload vulnerabilities",
"details" : "Multiple unrestricted file upload 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 execute arbitrary code by uploading a file with an executable extension, then accessing it via a direct request to the file in an unspecified directory, as exploited in the wild in July 2012.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:F"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:A"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "moin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6081"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/ubuntu/+source/moin/+bug/1094599"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moinwiki/moin"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/moin/PYSEC-2013-6.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228165146/http://www.securityfocus.com/bid/57082"
}, {
"type" : "WEB",
"url" : "http://hg.moinmo.in/moin/1.9/rev/7e7e1cbb9d3f"
}, {
"type" : "WEB",
"url" : "http://moinmo.in/MoinMoinRelease1.9"
}, {
"type" : "WEB",
"url" : "http://moinmo.in/SecurityFixes"
}, {
"type" : "WEB",
"url" : "http://ubuntu.com/usn/usn-1680-1"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2012/dsa-2593"
}, {
"type" : "WEB",
"url" : "http://www.exploit-db.com/exploits/25304"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/12/29/6"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/12/30/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-29T16:40:56Z",
"nvd_published_at" : "2013-01-03T01:55:00Z"
}
}