Vulnerabilities in pkg:pypi/Moin

PACKAGE
Advisory Identifier: GHSA-6gx4-29v9-g9q5
Advisory Summary

CVE-2012-6495 is a MODERATE (CVSS 4.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 multiple vulnerable to directory traversal. Remediation is available by upgrading affected packages to version 1.9.6.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/Moin

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/Moin. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6gx4-29v9-g9q5 CVE-2012-6495 MODERATE MoinMoin Multiple vulnerable to directory traversal
GHSA-gxh5-r8gp-pjc3 CVE-2010-2970 MODERATE MoinMoin cross-site scripting (XSS) vulnerability
GHSA-v744-h36c-hv5j CVE-2004-1462 HIGH MoinMoin Improper Access Control
GHSA-9xh4-wpx8-rg2w CVE-2004-1463 HIGH MoinMoin Improper Privilege Management
GHSA-7jrp-r6jx-32cw CVE-2004-0708 HIGH MoinMoin allows administrative access
GHSA-9gj2-ph57-56f5 CVE-2007-0901 MODERATE MoinMoin Cross-Site Scripting (XSS) vulnerability via hitcounts and general parameters

CVE-2012-6495 at a Glance

CVE Identifier CVE-2012-6495
GHSA Identifier GHSA-6gx4-29v9-g9q5
Severity MODERATE
CVSS v3.1 Base Score 4.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: 4.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:N/I:L/A:N).

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 None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2012-6495

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-6495, 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

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.

CVE-2012-6495 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-6495?
CVE-2012-6495 is a security vulnerability in Moin involving MoinMoin Multiple vulnerable to directory traversal 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-6495?
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-6495?
CVE-2012-6495 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2012-6495?
CVE-2012-6495 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-6495?
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-6gx4-29v9-g9q5",
  "modified" : "2024-09-26T14:58:33Z",
  "published" : "2022-05-17T05:17:04Z",
  "aliases" : [ "CVE-2012-6495" ],
  "summary" : "MoinMoin Multiple vulnerable to directory traversal",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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" : "0"
      }, {
        "fixed" : "1.9.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6495"
  }, {
    "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-7.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20151017045319/http://secunia.com/advisories/51696"
  }, {
    "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.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-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T16:49:42Z",
    "nvd_published_at" : "2013-01-03T01:55:00Z"
  }
}