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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | cpio | No fix yet | — |
| Ubuntu 26.04 LTS | cpio | No fix yet | — |
| Ubuntu 25.10 | cpio | No fix yet | — |
| Ubuntu 24.04 LTS | cpio | No fix yet | — |
| Ubuntu 22.04 LTS | cpio | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | cpio | No fix yet | — |
| Ubuntu Pro 18.04 LTS | cpio | No fix yet | — |
| Ubuntu Pro 16.04 LTS | cpio | No fix yet | — |
| Ubuntu Pro 14.04 LTS | cpio | No fix yet | — |
Advisories 1
- WID-SEC-2024-0298 cpio: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Jun 2, 2025
References
- https://access.redhat.com/security/cve/CVE-2023-7216 vdb-entry
- RHBZ#2249901 issue-tracking