Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-7216 EUVD-2023-59397GHSA-v9vx-4mxw-76j2

Cpio: extraction allows symlinks which enables remote command execution

Published Feb 5, 2024 · Updated Nov 6, 2026 · 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.

Affected products

VendorProductAffectedFixed
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 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 cpio No fix yet —
Ubuntu 26.04 LTS cpio No fix yet —
Ubuntu 25.10 cpio No fix yet —
Ubuntu 24.04 LTS cpio No fix yet —
Ubuntu 22.04 LTS cpio No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS cpio No fix yet —
Ubuntu Pro 18.04 LTS cpio No fix yet —
Ubuntu Pro 16.04 LTS cpio No fix yet —
Ubuntu Pro 14.04 LTS cpio No fix yet —

Advisories 1

References