CVE-2023-7216: Cpio: extraction allows symlinks which enables remote command execution
Vulnerability summary
CVE-2023-7216 is a medium (CVSS 5.3) vulnerability in gnu cpio. EPSS estimates a 0.90% chance of exploitation in the next 30 days, higher than 60.8% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 05-02-2024PublishedVulnerability first disclosed.
- 25-11-2026Last modifiedVulnerability information updated.
Description
A path traversal vulnerability was found in the CPIO utility. This issue could allow a remote unauthenticated attacker to trick a user into opening a specially crafted archive. During the extraction process, the archiver could follow symlinks outside of the intended directory, which allows files to be written in arbitrary directories through symlinks.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.90%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.90% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugzilla.redhat.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-59Improper Link Resolution Before File AccessThe product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Gnu1 product
- cpiona
Redhat1 product
- enterprise_linuxEOL7.0 | 8.0 | 9.0
Ubuntu1 product
- cpioAll versions (No fix recorded)
3 vendors · 3 products
References
4 links- bugzilla.redhat.com/show_bug.cgi?id=2249901Issue TrackingX Refsource REDHATREPORTExploitThird Party Advisory