{"id":"CVE-2026-54250","aliases":["CVE-2026-54250","GHSA-jxr7-mqhw-9p98","GO-2026-5973"],"related":["CGA-j7f5-x83j-h78q"],"kind":"vulnerability","state":"published","title":"K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"#### 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).","format":"markdown","source":"ghsa"},{"lang":"en","text":"K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression in github.com/k3s-io/k3s.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/k3s-io/k3s before v1.33.10, from v1.34.0-rc1 before v1.34.6, from v1.35.0-rc1 before v1.35.3.","format":"markdown","source":"go"},{"lang":"es","text":"K3s es una distribución de Kubernetes totalmente conforme y lista para producción. Antes de 1.35.3+k3s1, 1.34.6+k3s1, v1.33.10+k3s1, existe una vulnerabilidad de salto de ruta en la funcionalidad de descompresión de instantáneas de etcd de K3s. Los archivos Zip que contienen miembros de archivo con nombres creados maliciosamente pueden escribirse en ubicaciones arbitrarias del sistema de archivos cuando un administrador restaura el archivo como una instantánea de etcd comprimida. Esta vulnerabilidad está corregida en 1.35.3+k3s1, 1.34.6+k3s1, v1.33.10+k3s1.","source":"nvd"}],"published":"2026-06-25T17:56:56.747Z","modified":"2026-10-25T22:10:00.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 1.35.0-rc1+k3s1, < 1.35.3+k3s1","status":"affected"},{"version":">= 1.34.0-rc1+k3s1, < 1.34.6+k3s1","status":"affected"},{"version":"< 1.33.10+k3s1","status":"affected"}],"vendor":"k3s-io","product":"k3s","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.35.0-rc1","status":"affected","fixed":"1.35.3"}],"ecosystem":"Go","package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.34.0-rc1","status":"affected","fixed":"1.34.6"}],"ecosystem":"Go","package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.33.10"}],"ecosystem":"Go","package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/k3s-io/k3s","purl":"pkg:golang/github.com/k3s-io/k3s","source":"go"}],"references":[{"url":"https://github.com/k3s-io/k3s/security/advisories/GHSA-jxr7-mqhw-9p98","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54250","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/k3s-io/k3s","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-26T17:50:42.464Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54250","url":"https://www.cve.org/CVERecord?id=CVE-2026-54250","licence":"CVE Terms of Use","modified":"2026-06-26T18:42:33.835Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jxr7-mqhw-9p98","url":"https://github.com/advisories/GHSA-jxr7-mqhw-9p98","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:52.566Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5973","url":"https://pkg.go.dev/vuln/GO-2026-5973","licence":"CC-BY-4.0","modified":"2026-07-28T21:00:01.782Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54250","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54250","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:26.419Z","epss":{"score":0.00122,"percentile":0.02198,"date":"2026-12-01T12:00:22.000Z"}}