{"answers":{"affected":"6 open source packages ship an affected version, including github.com/mholt/archiver and github.com/mholt/archiver/v3. It affects 3 products.","exploited":"There is no known exploitation of CVE-2024-0406 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-0406 is a medium-severity path traversal vulnerability in Redhat Openshift Container Platform, published on 6 Apr 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-2024-0406 and fix it if it is affected.\n\nWhat it is: CVE-2024-0406 is a medium-severity path traversal vulnerability in Redhat Openshift Container Platform, published on 6 Apr 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: There is no known exploitation of CVE-2024-0406 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/mholt/archiver (Go): affected all versions; no fix listed\n- github.com/mholt/archiver (Go): affected from 3.0.0 up to 3.5.1; no fix listed\n- github.com/mholt/archiver (Go): affected from 3.0.0 up to 3.5.1; no fix listed\n- github.com/mholt/archiver/v3 (Go): affected all versions; no fix listed\n- github.com/mholt/archiver/v3 (Go): affected from 3.0.0 up to 3.5.1; no fix listed\n- github.com/mholt/archiver/v3 (Go): affected from 3.0.0 up to 3.5.1; no fix listed\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-2024-0406/ (Markdown: https://insights.sbomify.com/CVE-2024-0406/index.md)","id":"CVE-2024-0406","markdown":"https://insights.sbomify.com/CVE-2024-0406/index.md","name":"CVE-2024-0406","record":{"aliases":["GHSA-rhh4-rh7c-7r5v","GO-2024-2698","MINI-2c7v-j2m5-vrmf","MINI-36h7-cmxx-2jfc","MINI-7995-wxrw-p2j7","MINI-7qh4-69f5-98g2","MINI-mfr4-pmhc-mccr","MINI-qj32-xphp-54g7","openSUSE-SU-2025:14996-1","openSUSE-SU-2025:15004-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go archiver library","requires_auth":"none","summary":"Attackers can exploit a path traversal flaw in the Go archiver library to read or overwrite restricted files via crafted tar archives.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"archiver","vendor":"mholt"},{"product":"advanced_cluster_security","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A flaw was discovered in the mholt/archiver package. This flaw allows an attacker to create a specially crafted tar file, which, when unpacked, may allow access to restricted files or directories. This issue can allow the creation or overwriting of files with the user's or application's privileges using the library.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-03-12","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-12T02:54:47Z","kind":"github_poc","ref":"https://github.com/walidpyh/CVE-2024-0406-POC","stars":5,"title":"CVE-2024-0406 POC using symlinks"},{"date":"2025-03-29T17:10:03Z","kind":"github_poc","ref":"https://github.com/veissa/Desires","stars":0,"title":"vulnerable web app CVE-2024-0406 go cve"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Mholt/archiver: path traversal vulnerability","id":"CVE-2024-0406","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"redhat:openshift_container_platform","products":["redhat:openshift_container_platform"],"type":"path_traversal","year":"2024"},"n_packages":8,"n_references":3,"next":{"headline":"Certain HP Enterprise LaserJet, HP LaserJet Managed Printers – Potential Information Disclosure","id":"CVE-2024-0407"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/mholt/archiver","purl":"pkg:golang/github.com/mholt/archiver","source":"GO-2024-2698"},{"ecosystem":"Go","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.1"],"package":"github.com/mholt/archiver","purl":null,"source":"GHSA-rhh4-rh7c-7r5v"},{"ecosystem":"Go","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.1"],"package":"github.com/mholt/archiver","purl":"pkg:golang/github.com/mholt/archiver","source":"GHSA-rhh4-rh7c-7r5v"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/mholt/archiver/v3","purl":"pkg:golang/github.com/mholt/archiver/v3","source":"GO-2024-2698"},{"ecosystem":"Go","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.1"],"package":"github.com/mholt/archiver/v3","purl":null,"source":"GHSA-rhh4-rh7c-7r5v"},{"ecosystem":"Go","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.1"],"package":"github.com/mholt/archiver/v3","purl":"pkg:golang/github.com/mholt/archiver/v3","source":"GHSA-rhh4-rh7c-7r5v"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.2.2-1.1"],"introduced":["0"],"last_affected":[],"package":"hauler","purl":"pkg:rpm/opensuse/hauler\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14996-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.7.0-2.1"],"introduced":["0"],"last_affected":[],"package":"subfinder","purl":"pkg:rpm/opensuse/subfinder\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15004-1"}],"prev":{"headline":"Burst Statistics Really Simple Plugins \u003c= 1.5.3 - Authenticated (Editor+) SQL Injection","id":"CVE-2024-0405"},"products":["Red Hat Advanced Cluster Security 3","Red Hat Advanced Cluster Security 4","Red Hat OpenShift Container Platform 4.18"],"published":"2024-04-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-20","vendors":["Red Hat"]},"summary":"Attackers can exploit a path traversal flaw in the Go archiver library to read or overwrite restricted files via crafted tar archives.","url":"https://insights.sbomify.com/CVE-2024-0406/"}