Every CVE Search/ Get API key

CVE-2019-14866

In all versions of cpio before 2.13 does not properly validate input files when generating TAR...

6.7 MediumFix available

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.69%Down 0.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 6.7

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
CVE-2019-14866
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-20
Updated
2026-11-02
EUVDEUVD-2019-5982 6.7

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
EUVD-2019-5982
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-g3pr-277r-xcx7 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR...

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
GHSA-g3pr-277r-xcx7
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-20
Updated
2026-11-02
NVD 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.9 MediumAV:L/AC:M/Au:N/C:C/I:C/A:C
Weakness
CWE-20
Updated
2026-11-02
OSVALPINE-CVE-2019-14866 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
ALPINE-CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVBELL-CVE-2019-14866 7.3

CVE-2019-14866 does not affect BellSoft software

Record
BELL-CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 14 moreShow less
OSV 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-14866 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
DEBIAN-CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2020:3908 6.7

Red Hat Security Advisory: cpio security update

Record
RHSA-2020:3908
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:1582 6.7

Red Hat Security Advisory: cpio security update

Record
RHSA-2021:1582
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2022:0073 6.7

Red Hat Security Advisory: cpio security update

Record
RHSA-2022:0073
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:1582 6.7

Moderate: cpio security update

The cpio packages provide the GNU cpio utility for creating and extracting archives, or copying files from one place to another.

Security Fix(es):

  • cpio: improper input validation when writing tar header fields leads to unexpected tar generation (CVE-2019-14866)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.4 Release Notes linked from the References section.

Record
RLSA-2021:1582
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-14866 7.3

In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.

Record
UBUNTU-CVE-2019-14866
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
6.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2019-0326 No score

Updated cpio packages fix security vulnerabilities

in cpio 2.11, when using the --no-absolute-filenames option, allows local users to write to arbitrary files via a symlink attack on a file in an archive (CVE-2015-1197).

Thomas Habets discovered that GNU cpio incorrectly handled certain inputs. An attacker could possibly use this issue to privilege escalation (CVE-2019-14866).

cpio has been updated to 2.13 that fixes theese issues.

Record
MGASA-2019-0326
Updated
2026-11-02
OSVopenSUSE-SU-2019:2593-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2019-14866: Fixed an improper validation of the values written in the header of a TAR file through the to_oct() function which could have led to unexpected TAR generation (bsc#1155199).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2019:2593-1
Updated
2026-11-02
OSVopenSUSE-SU-2019:2596-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2019-14866: Fixed an improper validation of the values written in the header of a TAR file through the to_oct() function which could have led to unexpected TAR generation (bsc#1155199).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2019:2596-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10697-1 No score

cpio-2.13-3.3 on GA media

These are all security issues fixed in the cpio-2.13-3.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10697-1
Updated
2026-11-02
OSVSUSE-SU-2019:3059-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2019-14866: Fixed an improper validation of the values written in the header of a TAR file through the to_oct() function which could have led to unexpected TAR generation (bsc#1155199).
Record
SUSE-SU-2019:3059-1
Updated
2026-11-02
OSVSUSE-SU-2019:3064-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2019-14866: Fixed an improper validation of the values written in the header of a TAR file through the to_oct() function which could have led to unexpected TAR generation (bsc#1155199).
Record
SUSE-SU-2019:3064-1
Updated
2026-11-02
OSVUSN-4176-1 No score

cpio vulnerability

Thomas Habets discovered that GNU cpio incorrectly handled certain inputs. An attacker could possibly use this issue to privilege escalation.

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cpio
Alpine:v3.11
before 2.13-r0
2.13-r0
cpio
Alpine:v3.12
before 2.13-r0
2.13-r0
cpio
Alpine:v3.13
before 2.13-r0
2.13-r0
cpio
Alpine:v3.14
before 2.13-r0
2.13-r0
cpio
Alpine:v3.15
before 2.13-r0
2.13-r0
cpio
Alpine:v3.16
before 2.13-r0
2.13-r0
cpio
Alpine:v3.17
before 2.13-r0
2.13-r0
cpio
Alpine:v3.18
before 2.13-r0
2.13-r0
cpio
Alpine:v3.19
before 2.13-r0
2.13-r0
cpio
Alpine:v3.20
before 2.13-r0
2.13-r0
Show 38 moreShow less
Affected packages
PackageAffectedFixed
cpio
Alpine:v3.21
before 2.13-r0
2.13-r0
cpio
Alpine:v3.22
before 2.13-r0
2.13-r0
cpio
Alpine:v3.23
before 2.13-r0
2.13-r0
cpio
Alpine:v3.24
before 2.13-r0
2.13-r0
cpio
Debian:12
before 2.13+dfsg-1
2.13+dfsg-1
cpio
Debian:13
before 2.13+dfsg-1
2.13+dfsg-1
cpio
Debian:14
before 2.13+dfsg-1
2.13+dfsg-1
cpio
Debian:8
before 2.11+dfsg-4.1+deb8u2, plus listed versions
2.11+dfsg-4.12.11+dfsg-4.1+deb8u1
2.11+dfsg-4.1+deb8u2
cpio
Debian:10
before 2.12+dfsg-9+deb10u1, plus listed versions
2.12+dfsg-9
2.12+dfsg-9+deb10u1
cpio
Mageia:7
before 2.13-1.mga7
2.13-1.mga7
cpio
Red Hat:enterprise_linux:7::client
before 0:2.11-28.el7
0:2.11-28.el7
cpio-debuginfo
Red Hat:enterprise_linux:7::client
before 0:2.11-28.el7
0:2.11-28.el7
cpio
Red Hat:enterprise_linux:7::computenode
before 0:2.11-28.el7
0:2.11-28.el7
cpio-debuginfo
Red Hat:enterprise_linux:7::computenode
before 0:2.11-28.el7
0:2.11-28.el7
cpio
Red Hat:enterprise_linux:7::server
before 0:2.11-28.el7
0:2.11-28.el7
cpio-debuginfo
Red Hat:enterprise_linux:7::server
before 0:2.11-28.el7
0:2.11-28.el7
cpio
Red Hat:enterprise_linux:7::workstation
before 0:2.11-28.el7
0:2.11-28.el7
cpio-debuginfo
Red Hat:enterprise_linux:7::workstation
before 0:2.11-28.el7
0:2.11-28.el7
cpio
Red Hat:enterprise_linux:8::baseos
before 0:2.12-10.el8
0:2.12-10.el8
cpio-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:2.12-10.el8
0:2.12-10.el8
cpio-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:2.12-10.el8
0:2.12-10.el8
cpio
Red Hat:rhel_eus:8.2::baseos
before 0:2.12-8.el8_2.1
0:2.12-8.el8_2.1
cpio-debuginfo
Red Hat:rhel_eus:8.2::baseos
before 0:2.12-8.el8_2.1
0:2.12-8.el8_2.1
cpio-debugsource
Red Hat:rhel_eus:8.2::baseos
before 0:2.12-8.el8_2.1
0:2.12-8.el8_2.1
cpio
Rocky Linux:8
before 0:2.12-10.el8
0:2.12-10.el8
cpio
SUSE:Linux Enterprise Module for Basesystem 15
before 2.12-3.3.1
2.12-3.3.1
cpio
SUSE:Linux Enterprise Module for Basesystem 15 SP1
before 2.12-3.3.1
2.12-3.3.1
cpio
SUSE:Linux Enterprise Desktop 12 SP4
before 2.11-36.6.1
2.11-36.6.1
cpio
SUSE:Linux Enterprise Server 12 SP4
before 2.11-36.6.1
2.11-36.6.1
cpio
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 2.11-36.6.1
2.11-36.6.1
cpio
SUSE:Linux Enterprise Server 12 SP5
before 2.11-36.6.1
2.11-36.6.1
cpio
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.11-36.6.1
2.11-36.6.1
cpio
Ubuntu:Pro:14.04:LTS
before 2.11+dfsg-1ubuntu1.2+esm1, plus listed versions
2.11+dfsg-1ubuntu12.11+dfsg-1ubuntu1.12.11+dfsg-1ubuntu1.2
2.11+dfsg-1ubuntu1.2+esm1
cpio
Ubuntu:16.04:LTS
before 2.11+dfsg-5ubuntu1.1, plus listed versions
2.11+dfsg-4.1ubuntu12.11+dfsg-5ubuntu1
2.11+dfsg-5ubuntu1.1
cpio
Ubuntu:18.04:LTS
before 2.12+dfsg-6ubuntu0.18.04.1, plus listed versions
2.11+dfsg-62.12+dfsg-6
2.12+dfsg-6ubuntu0.18.04.1
cpio
openSUSE:Leap 15.0
before 2.12-lp150.2.3.1
2.12-lp150.2.3.1
cpio
openSUSE:Leap 15.1
before 2.12-lp151.3.3.1
2.12-lp151.3.3.1
cpio
openSUSE:Tumbleweed
before 2.13-3.3
2.13-3.3

History

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

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

In short

CVE-2019-14866 is a medium vulnerability (CVSS 6.7) in Gnu Cpio, published November 2, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.69%, the 52nd percentile. Fixed in cpio 2.13-r0.

References

Show 30 moreShow less
MoveEnter Open