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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-05T15:12:17.193Z
- Modified: 2026-11-25T14:17:04.627Z
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- cpio: no versions given
- gnu cpio: no versions given
- redhat enterprise_linux: 7.0; 8.0; 9.0

## Every score

- redhat: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2249901> (exploit, issue-tracking, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-7216> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2023-7216](https://www.cve.org/CVERecord?id=CVE-2023-7216), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2023-7216](https://nvd.nist.gov/vuln/detail/CVE-2023-7216), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2023-7216 · Whole record: https://cve.day/CVE-2023-7216.json · Rebuilt by cve.day 2026-11-25T23:18:02.486Z
