cpio: improper input validation when writing tar header fields leads to unexpected tar generation
Published Jan 7, 2020
7.3
HIGHCVSS 3.1
EPSS 0.69%
Description
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.
Affected products
-
- Version All cpio versions before 2.13StatusaffectedConstraints-
- Version
Configuration 2
- 7.0
- 8.0
No data.
Red Hat Enterprise Linux 7
cpio-0:2.11-28.el7
Fixed · RHSA-2020:3908
Red Hat Enterprise Linux 8
cpio-0:2.12-10.el8
Fixed · RHSA-2021:1582
Red Hat Enterprise Linux 8.2 Extended Update Support
cpio-0:2.12-8.el8_2.1
Fixed · RHSA-2022:0073
Red Hat OpenShift Do
openshiftdo/odo-init-image-rhel7:1.1.3-2
Fixed · RHSA-2021:0949
Red Hat Enterprise Linux 5
cpio
Out of support scope
Red Hat Enterprise Linux 6
cpio
Out of support scope
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | cpio-0:2.11-28.el7 | Fixed | RHSA-2020:3908 |
| Red Hat Enterprise Linux 8 | cpio-0:2.12-10.el8 | Fixed | RHSA-2021:1582 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | cpio-0:2.12-8.el8_2.1 | Fixed | RHSA-2022:0073 |
| Red Hat OpenShift Do | openshiftdo/odo-init-image-rhel7:1.1.3-2 | Fixed | RHSA-2021:0949 |
| Red Hat Enterprise Linux 5 | cpio | Out of support scope | n/a |
| Red Hat Enterprise Linux 6 | cpio | Out of support scope | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
TAR archives should be inspected before being extracted and the extraction should be performed with the `tar` command or `--no-absolute-filenames` option if done with `cpio`. Moreover, it should be performed by a low-privilege user whenever possible, to prevent extraction of files that could compromise the system.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
AV:L/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 4, 2026.
Score over time
2021-2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (11 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 4, 2026 | 0.69% (0.00686) | 50.97th | v5 (v2026.06.15) |
| Sep 20, 2026 | 0.69% (0.00686) | 51.21th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.05% (0.00053) | 21.68th | v3 (v2023.03.01) |
| May 22, 2024 | 0.05% (0.00053) | 20.84th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.05% (0.00053) | 18.78th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00890) | 30.33th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.41% (0.01412) | 50.22th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.63% (0.03630) | 71.73th | v1 |
| Jan 6, 2022 | 3.63% (0.03630) | 71.48th | v1 |
| Jan 5, 2022 | 0.83% (0.00833) | 58.90th | v5 (v2026.06.15) |
| Apr 14, 2021 | 0.83% (0.00833) | 0.00th | v1 |
References (8)
- https://access.redhat.com/security/cve/CVE-2019-14866 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1765511 Issue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14866 x_refsource_CONFIRMExploitIssue TrackingMitigationPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html
- https://lists.gnu.org/archive/html/bug-cpio/2019-08/msg00003.html x_refsource_MISCMailing ListPatchThird Party Advisory
- https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00000.html x_refsource_MISCExploitMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-14866
- https://www.cve.org/CVERecord?id=CVE-2019-14866
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-14866 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1765511 | Issue Tracking | |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14866 | x_refsource_CONFIRMExploitIssue TrackingMitigationPatchThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html | ||
| https://lists.gnu.org/archive/html/bug-cpio/2019-08/msg00003.html | x_refsource_MISCMailing ListPatchThird Party Advisory | |
| https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00000.html | x_refsource_MISCExploitMailing ListThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-14866 | ||
| https://www.cve.org/CVERecord?id=CVE-2019-14866 |
Change history (0)
No recorded changes yet.