{"answers":{"affected":"3 open source packages ship an affected version, including github.com/chainguard-dev/kaniko. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-28406 in the wild and no public exploit code.","fix":"Upgrade github.com/chainguard-dev/kaniko to 1.25.10 or later.","what":"CVE-2026-28406 is a high-severity path traversal vulnerability in chainguard-forks kaniko, published on 27 Feb 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-28406 and fix it if it is affected.\n\nWhat it is: CVE-2026-28406 is a high-severity path traversal vulnerability in chainguard-forks kaniko, published on 27 Feb 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-28406 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/chainguard-dev/kaniko (Go): affected from 1.25.4; fixed in 1.25.10\n- github.com/chainguard-dev/kaniko (Go): affected from 1.25.4; fixed in 1.25.10\n- github.com/chainguard-dev/kaniko (Go): affected from 1.25.4; fixed in 1.25.10\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-28406/ (Markdown: https://insights.sbomify.com/CVE-2026-28406/index.md)","id":"CVE-2026-28406","markdown":"https://insights.sbomify.com/CVE-2026-28406/index.md","name":"CVE-2026-28406","record":{"aliases":["GHSA-6rxq-q92g-4rmf","GO-2026-4580","MINI-cjrw-6r7q-f796","MINI-vh7j-m52f-57gq"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Container image builder","requires_auth":"none","summary":"Attackers can write files outside the destination directory during build context extraction, potentially leading to code execution in the executor process.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kaniko","vendor":"chainguard"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster. Starting in version 1.25.4 and prior to version 1.25.10, kaniko unpacks build context archives using `filepath.Join(dest, cleanedName)` without enforcing that the final path stays within `dest`. A tar entry like `../outside.txt` escapes the extraction root and writes files outside the destination directory. In environments with registry authentication, this can be chained with docker credential helpers to achieve code execution within the executor process. Version 1.25.10 uses securejoin for path resolution in tar extraction.","ecosystems":["Go"],"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":"kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory","id":"CVE-2026-28406","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"malcontent's nested archive extraction failure can drop content from scan inputs","id":"CVE-2026-28407"},"packages":[{"ecosystem":"Go","fixed":["1.25.10"],"introduced":["1.25.4"],"last_affected":[],"package":"github.com/chainguard-dev/kaniko","purl":null,"source":"GHSA-6rxq-q92g-4rmf"},{"ecosystem":"Go","fixed":["1.25.10"],"introduced":["1.25.4"],"last_affected":[],"package":"github.com/chainguard-dev/kaniko","purl":"pkg:golang/github.com/chainguard-dev/kaniko","source":"GHSA-6rxq-q92g-4rmf"},{"ecosystem":"Go","fixed":["1.25.10"],"introduced":["1.25.4"],"last_affected":[],"package":"github.com/chainguard-dev/kaniko","purl":"pkg:golang/github.com/chainguard-dev/kaniko","source":"GO-2026-4580"}],"prev":{"headline":"MarkUs: Stored XSS in Submission HTML Preview Enables Instructor-Context Actions","id":"CVE-2026-28405"},"products":["kaniko"],"published":"2026-02-27","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":"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":["chainguard-forks"]},"summary":"Attackers can write files outside the destination directory during build context extraction, potentially leading to code execution in the executor process.","url":"https://insights.sbomify.com/CVE-2026-28406/"}