{"answers":{"affected":"4 open source packages ship an affected version, including github.com/zarf-dev/zarf and github.com/defenseunicorns/zarf. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40090 in the wild and no public exploit code.","fix":"Upgrade github.com/zarf-dev/zarf to 0.74.2 or later.","what":"CVE-2026-40090 is a high-severity path traversal vulnerability in zarf-dev zarf, published on 14 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40090 and fix it if it is affected.\n\nWhat it is: CVE-2026-40090 is a high-severity path traversal vulnerability in zarf-dev zarf, published on 14 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-40090 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/zarf-dev/zarf (Go): affected from 0.23.0; fixed in 0.74.2\n- github.com/zarf-dev/zarf (Go): affected from 0.23.0; fixed in 0.74.2\n- github.com/zarf-dev/zarf (Go): affected from 0.37.0; fixed in 0.74.2\n- github.com/defenseunicorns/zarf (Go): affected from 0.23.0; 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-2026-40090/ (Markdown: https://insights.sbomify.com/CVE-2026-40090/index.md)","id":"CVE-2026-40090","markdown":"https://insights.sbomify.com/CVE-2026-40090/index.md","name":"CVE-2026-40090","record":{"aliases":["GHSA-pj97-4p9w-gx3q","GO-2026-5542"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes airgap packager","requires_auth":"none","summary":"Attackers can write arbitrary files via path traversal in Zarf package inspection, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zarf","vendor":"lfprojects"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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":"Zarf is an Airgap Native Packager Manager for Kubernetes. Versions 0.23.0 through 0.74.1 contain an arbitrary file write vulnerability in the zarf package inspect sbom and zarf package inspect documentation subcommands. These subcommands output file paths are constructed by joining a user-controlled output directory with the package's Metadata.Name field read directly from the untrusted package's zarf.yaml manifest. Although Metadata.Name is validated against a regex on package creation, an attacker can unarchive a package to modify the Metadata.Name field to contain path traversal sequences such as ../../etc/cron.d/malicious or absolute paths like /home/user/.ssh/authorized_keys, along with the corresponding files inside SBOMS.tar. This allows writing attacker-controlled content to arbitrary filesystem locations within the permissions of the user running the inspect command. This issue has been fixed in version 0.74.2.","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":"Zarf has a Path Traversal via Malicious Package Metadata.Name — Arbitrary File Write","id":"CVE-2026-40090","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"SpiceDB: SPICEDB_DATASTORE_CONN_URI is leaked on startup logs","id":"CVE-2026-40091"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0.23.0"],"last_affected":[],"package":"github.com/defenseunicorns/zarf","purl":"pkg:golang/github.com/defenseunicorns/zarf","source":"GO-2026-5542"},{"ecosystem":"Go","fixed":["0.74.2"],"introduced":["0.23.0"],"last_affected":[],"package":"github.com/zarf-dev/zarf","purl":null,"source":"GHSA-pj97-4p9w-gx3q"},{"ecosystem":"Go","fixed":["0.74.2"],"introduced":["0.23.0"],"last_affected":[],"package":"github.com/zarf-dev/zarf","purl":"pkg:golang/github.com/zarf-dev/zarf","source":"GHSA-pj97-4p9w-gx3q"},{"ecosystem":"Go","fixed":["0.74.2"],"introduced":["0.37.0"],"last_affected":[],"package":"github.com/zarf-dev/zarf","purl":"pkg:golang/github.com/zarf-dev/zarf","source":"GO-2026-5542"}],"prev":{"headline":"Sonicverse has Server-Side Request Forgery via user-controlled URLs in dashboard API client","id":"CVE-2026-40089"},"products":["zarf"],"published":"2026-04-14","related":[{"cvss_score":8.2,"headline":"Zarf: Symlink targets in archives are not validated against destination directory","id":"CVE-2026-29064","kev_date_added":null,"published":"2026-03-06"}],"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-15","vendors":["zarf-dev"]},"summary":"Attackers can write arbitrary files via path traversal in Zarf package inspection, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-40090/"}