Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.4
CVE-2015-2304: libarchive can let attackers write any file
CVE-2015-2304 · published 11 years ago
Summary
The libarchive library (used in Ubuntu Linux and openSUSE) lets a specially crafted archive specify full file paths, allowing a remote attacker to create or overwrite files anywhere on the system. This could let them install malicious code or tamper with important data. Update libarchive to the latest version or apply the vendor’s security patch to stop the issue.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| libarchive | libarchive |
<= 3.1.2 cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:x64:*:* |
| canonical | ubuntu_linux |
12.04 14.04 14.10 cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
| opensuse | opensuse |
13.1 13.2 cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:* |
Original advisory text
Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote attackers to write to arbitrary files via a full pathname in an archive.
Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote attackers to write to arbitrary files via a full pathname in an archive.
References
- http://advisories.mageia.org/MGASA-2015-0106.html
- http://lists.opensuse.org/opensuse-updates/2015-03/msg00065.html
- http://www.debian.org/security/2015/dsa-3180
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:157
- http://www.openwall.com/lists/oss-security/2015/01/07/5 Exploit
- http://www.openwall.com/lists/oss-security/2015/01/16/7
- http://www.securitytracker.com/id/1035996
- http://www.ubuntu.com/usn/USN-2549-1
- https://github.com/libarchive/libarchive/commit/59357157706d47c365b2227739e17dab...
- https://github.com/libarchive/libarchive/pull/110
- https://groups.google.com/forum/#%21msg/libarchive-discuss/dN9y1VvE1Qk/Z9uerigjQ...
- https://security.gentoo.org/glsa/201701-03
- https://www.freebsd.org/security/advisories/FreeBSD-SA-16:22.libarchive.asc
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Severity
6.4
Medium
Type
CWE-22Path Traversal
Timeline
Published15 Mar 2015
Updated1 Nov 2026
First seen29 Sep 2026
Sources
CVE-2015-2304 · NVD
Track software like this
Free during beta