CVE-2023-7216Cpio: extraction allows symlinks which enables remote command execution
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.
What to do
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cpio | Fix pending | UBUNTU-CVE-2023-7216 | |
| Ubuntu 26.04 | cpio | Under investigation | UBUNTU-CVE-2023-7216 | |
| Ubuntu 25.10 | cpio | Will not fix Upstream believes this is normal behavior. https://lists.gnu.org/archive/html/bug-cpio/2024-03/msg00000.html deferring to see if CVE gets rejected | UBUNTU-CVE-2023-7216 | |
| Ubuntu 24.04 | cpio | Under investigation | UBUNTU-CVE-2023-7216 | |
| Ubuntu 22.04 | cpio | Under investigation | UBUNTU-CVE-2023-7216 | |
| Ubuntu 20.04 | cpio | Fix pending | UBUNTU-CVE-2023-7216 | |
| Ubuntu 18.04 | cpio | Fix pending | UBUNTU-CVE-2023-7216 | |
| Ubuntu 16.04 | cpio | Will not fix Upstream believes this is normal behavior. https://lists.gnu.org/archive/html/bug-cpio/2024-03/msg00000.html deferring to see if CVE gets rejected | UBUNTU-CVE-2023-7216 | |
| Ubuntu 14.04 | cpio | Fix pending | UBUNTU-CVE-2023-7216 | |
| Red Hat Enterprise Linux 9 | cpio | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cpio | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cpio | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | cpio | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: Use the --no-absolute-filenames option to avoid this behaviour.
References
- https://access.redhat.com/security/cve/CVE-2023-7216
- https://bugzilla.redhat.com/show_bug.cgi?id=2249901
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.