CVE-2008-0782: Moin Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-6766-r2rx-mfw9
CWE-22
Published
Advisory Summary

CVE-2008-0782 is a MODERATE 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 in the latest vendor maintenance releases.

CVE-2008-0782 at a Glance

CVE Identifier CVE-2008-0782
GHSA Identifier GHSA-6766-r2rx-mfw9
Severity MODERATE
CVSS v3.1 Base Score N/A
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

How to Fix CVE-2008-0782

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: Latest secure release
pip install moin>=Latest secure release
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-2008-0782, 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 the patched release), 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 MoinMoin 1.5.8 and earlier allows remote attackers to overwrite arbitrary files via a `..` (dot dot) in the MOIN_ID user ID in a cookie for a userform action. NOTE: this issue can be leveraged for PHP code execution via the quicklinks parameter. The issue has been fixed on [e69a16b6e630](http://hg.moinmo.in/moin/1.5/rev/e69a16b6e630).

CVE-2008-0782 Affected Moin Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
moin
PyPI
≤ 1.5.8

References

Frequently Asked Questions

What is CVE-2008-0782?
CVE-2008-0782 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 current release patches across affected packages: moin.
What version fixes CVE-2008-0782?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is moin affected?
Yes, moin is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2008-0782?
CVE-2008-0782 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-2008-0782?
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-6766-r2rx-mfw9",
  "modified" : "2024-05-14T20:41:31Z",
  "published" : "2022-05-01T23:33:03Z",
  "aliases" : [ "CVE-2008-0782" ],
  "summary" : "MoinMoin Directory traversal vulnerability",
  "details" : "Directory traversal vulnerability in MoinMoin 1.5.8 and earlier allows remote attackers to overwrite arbitrary files via a `..` (dot dot) in the MOIN_ID user ID in a cookie for a userform action.  NOTE: this issue can be leveraged for PHP code execution via the quicklinks parameter. The issue has been fixed on [e69a16b6e630](http://hg.moinmo.in/moin/1.5/rev/e69a16b6e630).",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.5.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-0782"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/39837"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/716-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/4957"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.5/rev/e69a16b6e630"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29010"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29262"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29444"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/33755"
  }, {
    "type" : "WEB",
    "url" : "http://www.attrition.org/pipermail/vim/2008-January/001890.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1514"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200803-27.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/27404"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0569/references"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:41:31Z",
    "nvd_published_at" : "2008-02-14T21:00:00Z"
  }
}