CVE-2005-1632: Cheetah Cheetah Path Search Order Hijacking Vulnerability
HIGHCVE-2005-1632 is a HIGH cheetah path search order hijacking vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Cheetah libraries in the PyPI ecosystem. The issue involves cheetah path search order hijacking. Remediation is available in the latest vendor maintenance releases.
CVE-2005-1632 at a Glance
How to Fix CVE-2005-1632
To remediate this vulnerability, upgrade all affected Cheetah 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 cheetah>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show cheetah
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2005-1632, inspect your installed packages using pip:
pip show cheetah
Analyze the terminal output to locate any version of Cheetah 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 cheetah command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. In Cheetah, 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-2005-1632 Affected Cheetah Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cheetah
|
PyPI |
≥ 0.9.15
≤ 0.9.16
|
|
References
Frequently Asked Questions
What is CVE-2005-1632?
Which Cheetah versions are affected?
What version fixes CVE-2005-1632?
Is cheetah affected?
What CWE is associated with CVE-2005-1632?
How can I check PyPI dependencies for CVE-2005-1632?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vxf2-7rc3-pxmx",
"modified" : "2023-09-18T23:34:20Z",
"published" : "2022-05-01T02:00:38Z",
"aliases" : [ "CVE-2005-1632" ],
"summary" : "Cheetah Path Search Order Hijacking",
"details" : "Cheetah 0.9.15 and 0.9.16 searches the `/tmp` directory for modules before using the paths in the `PYTHONPATH` variable, which allows local users to execute arbitrary code via a malicious module in `/tmp/`.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "cheetah"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.9.15"
}, {
"last_affected" : "0.9.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2005-1632"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cheetahtemplate/cheetah"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20050430021153/http://sourceforge.net/mailarchive/forum.php?thread_id=7070332&forum_id=1542"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-427" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-18T23:34:20Z",
"nvd_published_at" : "2005-05-17T04:00:00Z"
}
}