CVE-2012-3360: Nova Path Traversal Vulnerability
MODERATECVE-2012-3360 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack nova directory traversal vulnerability. Remediation is available by upgrading affected packages to version 12.0.0a0.
CVE-2012-3360 at a Glance
How to Fix CVE-2012-3360
To remediate this vulnerability, upgrade all affected Nova 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 nova>=12.0.0a0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show nova
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2012-3360, inspect your installed packages using pip:
pip show nova
Analyze the terminal output to locate any version of Nova in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.0.0a0), your application is affected.
Note: The pip show nova 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 Nova, 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-2012-3360 Affected Nova Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nova
|
PyPI |
< 12.0.0a0
|
12.0.0a0
|
References
Frequently Asked Questions
What is CVE-2012-3360?
Which Nova versions are affected?
What version fixes CVE-2012-3360?
Is nova affected?
What CWE is associated with CVE-2012-3360?
How can I check PyPI dependencies for CVE-2012-3360?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m454-cm7h-rqhh",
"modified" : "2024-11-22T18:10:40Z",
"published" : "2022-05-17T05:25:39Z",
"aliases" : [ "CVE-2012-3360" ],
"summary" : "OpenStack Nova Directory traversal vulnerability",
"details" : "Directory traversal vulnerability in `virt/disk/api.py` in OpenStack Compute (Nova) Folsom (2012.2) and Essex (2012.1), when used over libvirt-based hypervisors, allows remote authenticated users to write arbitrary files to the disk image via a .. (dot dot) in the path attribute of a file element.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "nova"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.0.0a0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-3360"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/2427d4a99bed35baefd8f17ba422cb7aae8dcca7"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/b0feaffdb2b1c51182b8dce41b367f3449af5dd9"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/nova/+bug/1015531"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/nova"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nova/PYSEC-2012-38.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.launchpad.net/openstack/msg14089.html"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1497-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-14T21:27:19Z",
"nvd_published_at" : "2012-07-22T16:55:00Z"
}
}