Vulnerability · Published Feb 5, 2024 · Assigned by redhat
CVE-2023-7216Cpio: extraction allows symlinks which enables remote command execution
Medium 5.3
In plain English
A medium-severity security flaw in Red Hat Enterprise Linux 6 from Red Hat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities).
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.9%top 40.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | cpio | no fix listed | UBUNTU-CVE-2023-7216 |
| Ubuntu:24.04:LTS | cpio | no fix listed | UBUNTU-CVE-2023-7216 |
| Ubuntu:25.10 | cpio | no fix listed | UBUNTU-CVE-2023-7216 |
| Ubuntu:26.04:LTS | cpio | no fix listed | UBUNTU-CVE-2023-7216 |
| Ubuntu:26.10 | cpio | no fix listed | UBUNTU-CVE-2023-7216 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
Weakness: CWE-59 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
References
- https://access.redhat.com/security/cve/CVE-2023-7216 vdb-entry, x_refsource_REDHAT
- RHBZ#2249901 issue-tracking, x_refsource_REDHAT