{"answers":{"affected":"7 open source packages ship an affected version, including github.com/k3s-io/k3s.","exploited":"There is no known exploitation of CVE-2026-54250 in the wild and no public exploit code.","fix":"Upgrade github.com/k3s-io/k3s to a fixed version for your release line: 1.33.10, 1.34.6 or 1.35.3.","what":"CVE-2026-54250 is a medium-severity path traversal vulnerability in k3s-io k3s, published on 25 Jun 2026. 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-2026-54250 and fix it if it is affected.\n\nWhat it is: CVE-2026-54250 is a medium-severity path traversal vulnerability in k3s-io k3s, published on 25 Jun 2026. 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-2026-54250 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/k3s-io/k3s (Go): affected all versions; no fix listed\n- github.com/k3s-io/k3s (Go): affected all versions; fixed in 1.33.10\n- github.com/k3s-io/k3s (Go): affected all versions; fixed in 1.33.10\n- github.com/k3s-io/k3s (Go): affected from 1.34.0-rc1; fixed in 1.34.6\n- github.com/k3s-io/k3s (Go): affected from 1.34.0-rc1; fixed in 1.34.6\n- github.com/k3s-io/k3s (Go): affected from 1.35.0-rc1; fixed in 1.35.3\n- github.com/k3s-io/k3s (Go): affected from 1.35.0-rc1; fixed in 1.35.3\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-54250/ (Markdown: https://insights.sbomify.com/CVE-2026-54250/index.md)","id":"CVE-2026-54250","markdown":"https://insights.sbomify.com/CVE-2026-54250/index.md","name":"CVE-2026-54250","record":{"aliases":["GHSA-jxr7-mqhw-9p98","GO-2026-5973","MINI-868x-rfvr-c269","MINI-mpv5-grwp-9wmj"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes distribution","requires_auth":"high_privilege","summary":"Attackers can write arbitrary files via malicious ZIP archives during etcd snapshot restoration, 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":[],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"K3s is a fully conformant production-ready Kubernetes distribution. Prior to 1.35.3+k3s1, 1.34.6+k3s1, v1.33.10+k3s1, a path traversal vulnerability exists in K3s's etcd snapshot decompression functionality. Zip files containing archive members with maliciously crafted names can be written to arbitrary locations on the filesystem when an administrator restores the archive as a compressed etcd snapshot. This vulnerability is fixed in 1.35.3+k3s1, 1.34.6+k3s1, v1.33.10+k3s1.","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":"K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression","id":"CVE-2026-54250","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":7,"n_references":1,"next":{"headline":"netty-incubator-codec-ohttp: [OHttpServerCodec] Native Direct-Memory Leak on AEAD Decryption Failure Leads to Gateway Denial of Service","id":"CVE-2026-54251"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"GO-2026-5973"},{"ecosystem":"Go","fixed":["1.33.10"],"introduced":["0"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":null,"source":"GHSA-jxr7-mqhw-9p98"},{"ecosystem":"Go","fixed":["1.33.10"],"introduced":["0"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"GHSA-jxr7-mqhw-9p98"},{"ecosystem":"Go","fixed":["1.34.6"],"introduced":["1.34.0-rc1"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":null,"source":"GHSA-jxr7-mqhw-9p98"},{"ecosystem":"Go","fixed":["1.34.6"],"introduced":["1.34.0-rc1"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"GHSA-jxr7-mqhw-9p98"},{"ecosystem":"Go","fixed":["1.35.3"],"introduced":["1.35.0-rc1"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":null,"source":"GHSA-jxr7-mqhw-9p98"},{"ecosystem":"Go","fixed":["1.35.3"],"introduced":["1.35.0-rc1"],"last_affected":[],"package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"GHSA-jxr7-mqhw-9p98"}],"prev":{"headline":"Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials","id":"CVE-2026-54249"},"products":["k3s"],"published":"2026-06-25","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":"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-06-26","vendors":["k3s-io"]},"summary":"Attackers can write arbitrary files via malicious ZIP archives during etcd snapshot restoration, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-54250/"}