{"id":"UBUNTU-CVE-2023-7216","details":"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.","modified":"2026-08-31T17:15:52.499945280Z","published":"2024-02-05T15:15:00Z","upstream":["CVE-2023-7216"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-7216"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2249901"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2023-7216"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-7216"}],"affected":[{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11+dfsg-1ubuntu1","2.11+dfsg-1ubuntu1.1","2.11+dfsg-1ubuntu1.2","2.11+dfsg-1ubuntu1.2+esm1","2.11+dfsg-1ubuntu1.2+esm2","2.11+dfsg-1ubuntu1.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.11+dfsg-1ubuntu1.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11+dfsg-4.1ubuntu1","2.11+dfsg-5ubuntu1","2.11+dfsg-5ubuntu1.1","2.11+dfsg-5ubuntu1.1+esm1","2.11+dfsg-5ubuntu1.1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.11+dfsg-5ubuntu1.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11+dfsg-6","2.12+dfsg-6","2.12+dfsg-6ubuntu0.18.04.1","2.12+dfsg-6ubuntu0.18.04.4","2.12+dfsg-6ubuntu0.18.04.4+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.12+dfsg-6ubuntu0.18.04.4+esm1"},{"binary_version":"2.12+dfsg-6ubuntu0.18.04.4+esm1","binary_name":"cpio-win32"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.12+dfsg-9","2.12+dfsg-9ubuntu1","2.13+dfsg-1","2.13+dfsg-2","2.13+dfsg-2ubuntu0.3","2.13+dfsg-2ubuntu0.4","2.13+dfsg-2ubuntu0.4+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.13+dfsg-2ubuntu0.4+esm1"},{"binary_name":"cpio-win32","binary_version":"2.13+dfsg-2ubuntu0.4+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.13+dfsg-4ubuntu4","2.13+dfsg-7","2.13+dfsg-7ubuntu0.1","2.13+dfsg-7ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.13+dfsg-7ubuntu0.2"},{"binary_name":"cpio-win32","binary_version":"2.13+dfsg-7ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.13+dfsg-7.1","2.14+dfsg-1","2.15+dfsg-1","2.15+dfsg-1ubuntu1","2.15+dfsg-1ubuntu2","2.15+dfsg-1ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.15+dfsg-1ubuntu2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.15+dfsg-2","2.15+dfsg-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.15+dfsg-2ubuntu1","binary_name":"cpio"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.15+dfsg-2ubuntu1","2.15+dfsg-2.1","2.15+dfsg-2.1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.15+dfsg-2.1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7216.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}