CVEfocus › CVE database › CVE-2023-7216

CVE-2023-7216Cpio: extraction allows symlinks which enables remote command execution

CVSS 5.3 MediumEPSS 0.6% (higher than 40% of CVEs)Published 2024-02-05Updated 2026-11-25Assigner: redhat

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.

CWE-59

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

7Fix pending
3Under investigation
3Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cpioFix pendingUBUNTU-CVE-2023-7216
Ubuntu 26.04cpioUnder investigationUBUNTU-CVE-2023-7216
Ubuntu 25.10cpioWill 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.04cpioUnder investigationUBUNTU-CVE-2023-7216
Ubuntu 22.04cpioUnder investigationUBUNTU-CVE-2023-7216
Ubuntu 20.04cpioFix pendingUBUNTU-CVE-2023-7216
Ubuntu 18.04cpioFix pendingUBUNTU-CVE-2023-7216
Ubuntu 16.04cpioWill 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.04cpioFix pendingUBUNTU-CVE-2023-7216
Red Hat Enterprise Linux 9cpioFix pending
Fix deferred
Red Hat Enterprise Linux 8cpioFix pending
Fix deferred
Red Hat Enterprise Linux 7cpioFix pending
Fix deferred
Red Hat Enterprise Linux 6cpioWill 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.

Workaround: Use the --no-absolute-filenames option to avoid this behaviour.

References

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.