{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-7216 exists.","fix":"No fix has been published for CVE-2023-7216 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-7216 is a medium-severity path traversal vulnerability in Redhat Enterprise Linux, published on 5 Feb 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-7216 and fix it if it is affected.\n\nWhat it is: CVE-2023-7216 is a medium-severity path traversal vulnerability in Redhat Enterprise Linux, published on 5 Feb 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-7216 exists.\n\nAffected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-7216/ (Markdown: https://insights.sbomify.com/CVE-2023-7216/index.md)","id":"CVE-2023-7216","markdown":"https://insights.sbomify.com/CVE-2023-7216/index.md","name":"CVE-2023-7216","record":{"aliases":["GHSA-v9vx-4mxw-76j2","UBUNTU-CVE-2023-7216"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cpio utility","requires_auth":"none","summary":"A path traversal flaw in Cpio allows attackers to write files to arbitrary directories via symlinks, potentially leading to remote code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cpio","vendor":"gnu"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Cpio: extraction allows symlinks which enables remote command execution","id":"CVE-2023-7216","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux"],"type":"path_traversal","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"Totolink N350RT cstecgi.cgi loginAuth stack-based overflow","id":"CVE-2023-7218"},"packages":[],"prev":{"headline":"Chanzhaoyu chatgpt-web cross site scripting","id":"CVE-2023-7215"},"products":["Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9"],"published":"2024-02-05","related":[{"cvss_score":7.8,"headline":"Integer overflow in n/a","id":"CVE-2021-38185","kev_date_added":null,"published":"2021-08-07"},{"cvss_score":7.2,"headline":"Path traversal in n/a","id":"CVE-2010-4226","kev_date_added":null,"published":"2014-02-06"},{"cvss_score":6.8,"headline":"Memory corruption in n/a","id":"CVE-2010-0624","kev_date_added":null,"published":"2010-03-12"},{"cvss_score":6.7,"headline":"Path traversal in cpio","id":"CVE-2019-14866","kev_date_added":null,"published":"2020-01-07"},{"cvss_score":4.9,"headline":"Path traversal in Debian cpio","id":"CVE-2023-7207","kev_date_added":null,"published":"2024-01-05"},{"cvss_score":4.6,"headline":"Path traversal in n/a","id":"CVE-2005-1229","kev_date_added":null,"published":"2005-04-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-25","vendors":["Red Hat"]},"summary":"A path traversal flaw in Cpio allows attackers to write files to arbitrary directories via symlinks, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2023-7216/"}