CVE-2012-6081: Moin MoinMoin Multiple Unrestricted File Upload Vulnerability

MODERATE
Advisory Identifier: GHSA-m2c4-jgmm-fvq3
CVSS 6.3
CWE-434
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2012-6081
GHSA Identifier GHSA-m2c4-jgmm-fvq3
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Moin
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

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.

moin fixed: 1.9.6
pip install moin>=1.9.6
Verify Direct and Transitive Dependencies

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

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.

CVE-2012-6081 Affected Moin Versions

1 component(s)
Fixed Versions:
1.9.6
Product / Package Ecosystem Affected Versions Fixed Version
moin
PyPI
< 1.9.6
1.9.6

References

Frequently Asked Questions

What is CVE-2012-6081?
CVE-2012-6081 is a security vulnerability in Moin involving MoinMoin Multiple unrestricted file upload vulnerabilities under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Moin versions are affected?
Affected versions include releases prior to 1.9.6 across affected packages: moin.
What version fixes CVE-2012-6081?
Upgrading to 1.9.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is moin affected?
Yes, moin is affected in releases prior to 1.9.6. Upgrade your dependency to 1.9.6 or later.
What is the CVSS score of CVE-2012-6081?
CVE-2012-6081 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:F.
What CWE is associated with CVE-2012-6081?
CVE-2012-6081 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check PyPI dependencies for CVE-2012-6081?
Run the dependency tree command: 'pip show moin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}