{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-42496 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-42496 is a critical path traversal vulnerability in BINGOS Archive::Tar, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42496 and fix it if it is affected.\n\nWhat it is: CVE-2026-42496 is a critical path traversal vulnerability in BINGOS Archive::Tar, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-42496 in the wild and no public exploit code.\n\nAffected product: BINGOS Archive::Tar. 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-2026-42496/ (Markdown: https://insights.sbomify.com/CVE-2026-42496/index.md)","id":"CVE-2026-42496","markdown":"https://insights.sbomify.com/CVE-2026-42496/index.md","name":"CVE-2026-42496","record":{"aliases":["ALSA-2026:30852","ALSA-2026:30856","ALSA-2026:30857","AZL-89133","BELL-CVE-2026-42496","CLSA-2026-1783078093","CLSA-2026-1783078783","DEBIAN-CVE-2026-42496","ECHO-1732-bcf6-7970","GHSA-8p37-q9qq-hgx8","OESA-2026-2678","RHSA-2026:30852","RHSA-2026:30856","RHSA-2026:30857","RLSA-2026:30852","RLSA-2026:30856","RLSA-2026:30857","ROOT-OS-DEBIAN-11-CVE-2026-42496","UBUNTU-CVE-2026-42496"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl Archive::Tar library","requires_auth":"none","summary":"Attackers can extract symlinks pointing outside the target directory, allowing arbitrary file read or write operations via subsequent file access.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"\\","vendor":"archive\\"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","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":"Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory.\n\n_make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target.\n\nA subsequent open through the extracted name reads or writes the attacker chosen path.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in Archive::Tar","id":"CVE-2026-42496","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":9,"n_references":3,"next":{"headline":"Path traversal in Archive::Tar","id":"CVE-2026-42497"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["3.02-512.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/almalinux/perl-Archive-Tar","source":"ALSA-2026:30857"},{"ecosystem":"AlmaLinux:8","fixed":["2.30-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/almalinux/perl-Archive-Tar","source":"ALSA-2026:30852"},{"ecosystem":"AlmaLinux:9","fixed":["2.38-6.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/almalinux/perl-Archive-Tar","source":"ALSA-2026:30856"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:3.02-512.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/redhat/perl-Archive-Tar","source":"RHSA-2026:30857"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.30-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/redhat/perl-Archive-Tar","source":"RHSA-2026:30852"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.38-6.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/redhat/perl-Archive-Tar","source":"RHSA-2026:30856"},{"ecosystem":"Rocky Linux:10","fixed":["0:3.02-512.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/rocky-linux/perl-Archive-Tar?distro=rocky-linux-10-aarch64\u0026epoch=0","source":"RLSA-2026:30857"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.30-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/rocky-linux/perl-Archive-Tar?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2026:30852"},{"ecosystem":"Rocky Linux:9","fixed":["0:2.38-6.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"perl-Archive-Tar","purl":"pkg:rpm/rocky-linux/perl-Archive-Tar?distro=rocky-linux-9-x86-64\u0026epoch=0","source":"RLSA-2026:30856"}],"prev":{"headline":"buffer overruns in libfsimage iso9660 handling","id":"CVE-2026-42495"},"products":["Archive::Tar"],"published":"2026-05-26","related":[{"cvss_score":7.5,"headline":"Path traversal in Archive::Tar","id":"CVE-2026-42497","kev_date_added":null,"published":"2026-05-26"},{"cvss_score":7.5,"headline":"Denial of service in Archive::Tar","id":"CVE-2026-9538","kev_date_added":null,"published":"2026-05-26"},{"cvss_score":6.8,"headline":"Path traversal in n/a","id":"CVE-2007-4829","kev_date_added":null,"published":"2007-11-02"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["BINGOS"]},"summary":"Attackers can extract symlinks pointing outside the target directory, allowing arbitrary file read or write operations via subsequent file access.","url":"https://insights.sbomify.com/CVE-2026-42496/"}