CVE-2023-7216

Public Exploit
Cpio: extraction allows symlinks which enables remote command execution

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.

Remediation

Workaround:

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

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.13%
Third-Party Advisory redhat.com Third-Party Advisory redhat.com
Affected: Red Hat Red Hat Enterprise Linux 6
Affected: Red Hat Red Hat Enterprise Linux 7
Affected: Red Hat Red Hat Enterprise Linux 8
Affected: Red Hat Red Hat Enterprise Linux 9
Published at:
Updated at:

References

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

Frequently Asked Questions

What is the severity of CVE-2023-7216?
CVE-2023-7216 has been scored as a medium severity vulnerability.
How to fix CVE-2023-7216?
As a workaround for remediating CVE-2023-7216: Use the --no-absolute-filenames option to avoid this behaviour.
Is CVE-2023-7216 being actively exploited in the wild?
It is possible that CVE-2023-7216 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-7216?
CVE-2023-7216 affects 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.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.