CVE-2023-7216
MediumCVSS 5.3Summary
A path traversal vulnerability was found in the CPIO utility. During extraction, the archiver could follow symlinks outside of the intended directory, allowing files to be written in arbitrary directories through symlinks.
Risk Assessment
An attacker could trick a user into opening a specially crafted archive, potentially overwriting system files or placing malicious files in critical directories.
Recommendation
Update CPIO to a version containing the fix. Avoid extracting untrusted CPIO archives, especially those containing symlinks.
Other vulnerabilities in CPIO
See all- CVE-2015-1197Low
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-1999-1572Low
The cpio program on FreeBSD 2.1.0, Debian GNU/Linux 3.0, and possibly other operating systems uses a 0 umask when creating files with the -O (archive) or -F options, resulting in files being created with mode 0666.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

