CVE-2023-7216
published medium CVSS 3.1 · 5.3Cpio: extraction allows symlinks which enables remote command execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 6 | cpio | Unknown | Not stated | redhat |
| Red Hat Enterprise Linux | 7, 8, 9 | cpio | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 6 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat · cna |
Weaknesses
1- CWE-59 Improper Link Resolution Before File Access
References
2- https://access.redhat.com/security/cve/CVE-2023-7216
- RHBZ#2249901 https://bugzilla.redhat.com/show_bug.cgi?id=2249901
Provider assertions
3redhat · cna
Cpio: extraction allows symlinks which enables remote command execution
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 36210df0545a028a051a036ef2a328d9be450cd45c93f7734e6b15026ad99f43
- Ingested
- 25 Nov 2026, 13:23:00 UTC
- Source record
- Official CVE record