CVE-2023-7216: gnu cpio Link Following
Vulnerability summary
CVE-2023-7216 is a medium (CVSS 5.3) Link Following vulnerability in gnu cpio. EPSS estimates a 0.90% chance of exploitation in the next 30 days, higher than 58.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 05-02-2024PublishedVulnerability first disclosed.
- 25-02-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
59%
Versus all other CVEs
30-day change
0.00 pp
From 0.90% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugzilla.redhat.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-59Improper Link Resolution Before File Access ('Link Following')The 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 Directory ('Path Traversal')The 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
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