Every CVE Search/ Get API key

CVE-2015-2304

Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote...

6.4 MediumFix available

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.

Exploit likelihood

4.93%Up 1.2 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.4

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.

Record
CVE-2015-2304
CVSS 2.0
6.4 MediumAV:N/AC:L/Au:N/C:N/I:P/A:P
Weakness
CWE-22
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2015-2304
Updated
2026-11-02
EUVDEUVD-2015-2401 No score

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.

Record
EUVD-2015-2401
Updated
2026-11-03
GitHub AdvisoriesGHSA-fg4c-3cxq-4rf3 No score

Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote...

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.

Record
GHSA-fg4c-3cxq-4rf3
Weakness
CWE-22
Updated
2026-11-02
OSVBELL-CVE-2015-2304 6.4

CVE-2015-2304 does not affect BellSoft software

Record
BELL-CVE-2015-2304
CVSS 2.0
6.4 MediumAV:N/AC:L/Au:N/C:N/I:P/A:P
Updated
2026-11-02
OSV No score

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.

Record
CVE-2015-2304
Updated
2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2015-2304 No score

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.

Record
DEBIAN-CVE-2015-2304
Updated
2026-11-02
OSVopenSUSE-SU-2024:10127-1 No score

bsdtar-3.2.2-2.1 on GA media

These are all security issues fixed in the bsdtar-3.2.2-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10127-1
Updated
2026-11-02
OSVSUSE-SU-2015:0667-1 No score

Security update for libarchive

libarchive was updated to fix a directory traversal in the bsdcpio tool, which allowed attackers supplying crafted archives to overwrite files. (CVE-2015-2304)

Also, a integer overflow was fixed that could also overflow buffers. (CVE-2013-0211)

Record
SUSE-SU-2015:0667-1
Updated
2026-11-02
OSVSUSE-SU-2016:1939-1 No score

Security update for bsdtar

bsdtar was updated to fix seven security issues.

These security issues were fixed:

  • CVE-2015-8929: Memory leak in tar parser (bsc#985669).
  • CVE-2016-4809: Memory allocate error with symbolic links in cpio archives (bsc#984990).
  • CVE-2015-8920: Stack out of bounds read in ar parser (bsc#985675).
  • CVE-2015-8921: Global out of bounds read in mtree parser (bsc#985682).
  • CVE-2015-8924: Heap buffer read overflow in tar (bsc#985609).
  • CVE-2015-8918: Overlapping memcpy in CAB parser (bsc#985698).
  • CVE-2015-2304: Reject absolute paths in input mode of bsdcpio exactly when '..' is rejected (bsc#920870).
Record
SUSE-SU-2016:1939-1
Updated
2026-11-02
OSVSUSE-SU-2016:2911-1 No score

Security update for libarchive

This update for libarchive fixes several issues.

These security issues were fixed:

  • CVE-2016-8687: Buffer overflow when printing a filename (bsc#1005070).
  • CVE-2016-8689: Heap overflow when reading corrupted 7Zip files (bsc#1005072).
  • CVE-2016-8688: Use after free because of incorrect calculation in next_line (bsc#1005076).
  • CVE-2016-5844: Integer overflow in the ISO parser in libarchive allowed remote attackers to cause a denial of service (application crash) via a crafted ISO file (bsc#986566).
  • CVE-2016-6250: Integer overflow in the ISO9660 writer in libarchive allowed remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow (bsc#989980).
  • CVE-2016-5418: The sandboxing code in libarchive mishandled hardlink archive entries of non-zero data size, which might allowed remote attackers to write to arbitrary files via a crafted archive file (bsc#998677).
Record
SUSE-SU-2016:2911-1
Updated
2026-11-02
OSVUBUNTU-CVE-2015-2304 No score

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.

Record
UBUNTU-CVE-2015-2304
Updated
2026-11-02
OSVUSN-2549-1 No score

libarchive vulnerabilities

It was discovered that the libarchive bsdcpio utility extracted absolute paths by default without using the --insecure flag, contrary to expectations. If a user or automated system were tricked into extracting cpio archives containing absolute paths, a remote attacker may be able to write to arbitrary files. (CVE-2015-2304)

Fabian Yamaguchi discovered that libarchive incorrectly handled certain type conversions. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. This issue only affected Ubuntu 12.04 LTS. (CVE-2013-0211)

Record
USN-2549-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libarchive
Debian:12
before 3.1.2-11
3.1.2-11
libarchive
Debian:13
before 3.1.2-11
3.1.2-11
libarchive
Debian:14
before 3.1.2-11
3.1.2-11
libarchive
Debian:6.0
before 2.8.4.forreal-1+squeeze3, plus listed versions
2.8.4-12.8.4-1+squeeze12.8.4-22.8.4.forreal-1+squeeze2
2.8.4.forreal-1+squeeze3
libarchive
Debian:7
before 3.0.4-3+wheezy1, plus listed versions
3.0.4-3+nmu1
3.0.4-3+wheezy1
libarchive
SUSE:Linux Enterprise Desktop 12
From an advisory covering 2 CVEs
before 3.1.2-9.1
3.1.2-9.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12
From an advisory covering 2 CVEs
before 3.1.2-9.1
3.1.2-9.1
libarchive
SUSE:Linux Enterprise Server 12
From an advisory covering 2 CVEs
before 3.1.2-9.1
3.1.2-9.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 2 CVEs
before 3.1.2-9.1
3.1.2-9.1
bsdtar
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
Show 22 moreShow less
Affected packages
PackageAffectedFixed
bsdtar
SUSE:OpenStack Cloud 5
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Manager 2.1
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Manager Proxy 2.1
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Server 11 SP2-LTSS
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Server 11 SP3-LTSS
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Server 11 SP3-TERADATA
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
bsdtar
SUSE:Studio Onsite 1.3
From an advisory covering 7 CVEs
before 2.5.5-9.1
2.5.5-9.1
libarchive
SUSE:Linux Enterprise Desktop 12 SP1
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Desktop 12 SP2
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP1
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server 12 SP1
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 7 CVEs
before 3.1.2-25.1
3.1.2-25.1
libarchive
Ubuntu:14.04:LTS
before 3.1.2-7ubuntu2.1, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu2
3.1.2-7ubuntu2.1
libarchive
Ubuntu:14.04:LTS
From an advisory covering 2 CVEs
before 3.1.2-7ubuntu2.1, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu2
3.1.2-7ubuntu2.1
bsdtar
openSUSE:Tumbleweed
From an advisory covering 16 CVEs
before 3.2.2-2.1
3.2.2-2.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2015-2304 is a medium vulnerability (CVSS 6.4) in Libarchive, published March 5, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.93%, the 92nd percentile. Fixed in libarchive 3.1.2-11.

References

Show 53 moreShow less
MoveEnter Open