CVE-2023-7216
CPIO: extraction allows symlinks which enables Remote Command Execution
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 5, 2024
Updated · February 26, 2026
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.
Statement
This vulnerability requires the attacker to use social engineering on the victim to get them to open the cpio archive.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Use the --no-absolute-filenames option to avoid this behaviour.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
CWE-59 · Improper Link Resolution Before File Access ('Link Following')