CVE-2008-0782: Moin Path Traversal Vulnerability
MODERATECVE-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
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.
pip install moin>=Latest secure release
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
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?
Which Moin versions are affected?
What version fixes CVE-2008-0782?
Is moin affected?
What CWE is associated with CVE-2008-0782?
How can I check PyPI dependencies for CVE-2008-0782?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}