# CVE-2012-3360: OpenStack Nova Directory traversal vulnerability

> Remote authenticated users can write arbitrary files to disk images via path traversal in OpenStack Compute.

- **Severity:** Medium 5.5 (`AV:N/AC:L/Au:S/C:N/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 22 Jul 2012
- **Updated:** 6 Aug 2024
- **Also known as:** DEBIAN-CVE-2012-3360, GHSA-m454-cm7h-rqhh

## What is CVE-2012-3360?

CVE-2012-3360 is a medium-severity path traversal vulnerability in n/a, published on 22 Jul 2012. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

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.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2012-3360?

2 open source packages ship an affected version, including nova. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `nova` | PyPI | All versions | 12.0.0a0 |
| `nova` | PyPI | All versions | 12.0.0a0 |

Products: Openstack Essex, Openstack Folsom.

## How do I fix CVE-2012-3360?

Upgrade nova to 12.0.0a0 or later.

## Is CVE-2012-3360 being exploited?

There is no known exploitation of CVE-2012-3360 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2013-0261](https://insights.sbomify.com/CVE-2013-0261/): Packstack: packstack: arbitrary file overwrite via symlink attack (high 8.8)
- [CVE-2013-0266](https://insights.sbomify.com/CVE-2013-0266/): Information disclosure in Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) (medium 5.5)
- [CVE-2012-4573](https://insights.sbomify.com/CVE-2012-4573/): OpenStack Glance arbitrary deletion of non-protected images (medium 5.5)
- [CVE-2012-5482](https://insights.sbomify.com/CVE-2012-5482/): OpenStack Glance arbitrary deletion of non-protected images (medium 5.5)
- [CVE-2012-5571](https://insights.sbomify.com/CVE-2012-5571/): Openstack keystone: openstack keystone: authorization bypass via improper ec2 token handling (medium 5.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2012-3360 and fix it if it is affected.

What it is: CVE-2012-3360 is a medium-severity path traversal vulnerability in n/a, published on 22 Jul 2012. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2012-3360 in the wild and no public exploit code.

Affected packages and fixed versions:
- nova (PyPI): affected all versions; fixed in 12.0.0a0
- nova (PyPI): affected all versions; fixed in 12.0.0a0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2012-3360/ (Markdown: https://insights.sbomify.com/CVE-2012-3360/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2012-3360
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2012-3360
- OSV: https://osv.dev/vulnerability/CVE-2012-3360

---
From sbomify Insights: https://insights.sbomify.com/CVE-2012-3360/
Summaries are generated and may contain mistakes; the official description above is the record.
