{"id":"CVE-2026-54250","aliases":["GO-2026-5973"],"url":"https://o3.security/vulnerability/CVE-2026-54250","summary":"K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression","details":"#### Summary\n\nA path traversal vulnerability exists in K3s's etcd snapshot decompression functionality. Zip files containing archive members with maliciously crafted names (e.g., `../../../../etc/password`) can be written to arbitrary locations on the filesystem when an administrator restores the archive as a compressed etcd snapshot.\n\n#### Mitigations\n\n* Enable golang's built-in [insecure path protections](https://pkg.go.dev/archive/zip#NewReader) when restoring snapshots by setting the`GODEBUG` environment variable:\n    ```bash\n    GODEBUG=zipinsecurepath=0 k3s server --cluster-reset --cluster-reset-restore-path=/path/to/snapshot.zip\n    ```\n* Manually extract the snapshot from the zip archive before restoring it. If the snapshot to be restored does not end with `.zip`, the vulnerable extraction code will not be executed.\n\n#### Additional Notes\n\nAdministrators should be aware of the cautions noted in the \"Security\" section of the documentation on [Restoring Snapshots](https://docs.k3s.io/cli/etcd-snapshot#security).","published":"2026-07-14T17:54:14Z","modified":"2026-09-10T03:50:52.566036718Z","cvss":{"score":5.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H"},"epss":{"score":0.00167,"percentile":0.063,"asOf":"2026-09-14"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/k3s-io/k3s","fixedVersion":"1.35.3"},{"ecosystem":"Go","name":"github.com/k3s-io/k3s","fixedVersion":"1.34.6"},{"ecosystem":"Go","name":"github.com/k3s-io/k3s","fixedVersion":"1.33.10"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/k3s-io/k3s/security/advisories/GHSA-jxr7-mqhw-9p98"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54250"},{"type":"PACKAGE","url":"https://github.com/k3s-io/k3s"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-10T03:50:52.566036718Z"}}