CVE-2012-6080: Moin Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-v33q-2xcj-4f3m
CVSS 5.3
CWE-22
Published
Advisory Summary

CVE-2012-6080 is a MODERATE (CVSS 5.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Moin libraries in the PyPI ecosystem. The issue involves moinmoin directory traversal vulnerability. Remediation is available by upgrading affected packages to version 1.9.6.

CVE-2012-6080 at a Glance

CVE Identifier CVE-2012-6080
GHSA Identifier GHSA-v33q-2xcj-4f3m
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Moin
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2012-6080

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-6080, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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

Directory traversal vulnerability in the `_do_attachment_move` function in the AttachFile action (`action/AttachFile.py`) in MoinMoin 1.9.3 through 1.9.5 allows remote attackers to overwrite arbitrary files via a `..` (dot dot) in a file name.

CVE-2012-6080 Affected Moin Versions

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

References

Frequently Asked Questions

What is CVE-2012-6080?
CVE-2012-6080 is a security vulnerability in Moin involving MoinMoin Directory Traversal vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Moin versions are affected?
Affected versions include releases prior to 1.9.6 across affected packages: moin.
What version fixes CVE-2012-6080?
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-6080?
CVE-2012-6080 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2012-6080?
CVE-2012-6080 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2012-6080?
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-v33q-2xcj-4f3m",
  "modified" : "2024-09-26T14:54:52Z",
  "published" : "2022-05-17T05:17:24Z",
  "aliases" : [ "CVE-2012-6080" ],
  "summary" : "MoinMoin Directory Traversal vulnerability",
  "details" : "Directory traversal vulnerability in the `_do_attachment_move` function in the AttachFile action (`action/AttachFile.py`) in MoinMoin 1.9.3 through 1.9.5 allows remote attackers to overwrite arbitrary files via a `..` (dot dot) in a file name.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.3"
      }, {
        "fixed" : "1.9.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6080"
  }, {
    "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-5.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20130513231719/http://secunia.com/advisories/51663"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20151017045319/http://secunia.com/advisories/51696"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20151104192815/http://secunia.com/advisories/51676"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228145410/http://www.securityfocus.com/bid/57076"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.9/rev/3c27131a3c52"
  }, {
    "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.openwall.com/lists/oss-security/2012/12/30/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-01T10:53:12Z",
    "nvd_published_at" : "2013-01-03T01:55:00Z"
  }
}