CVE-2026-54250
JSON

5.8medium

K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression

Severity
5.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jxr7-mqhw-9p98GO-2026-5973

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.

Affected

Product or packageVersionsReported by
k3s-io k3s>= 1.35.0-rc1+k3s1, < 1.35.3+k3s1, >= 1.34.0-rc1+k3s1, < 1.34.6+k3s1, < 1.33.10+k3s1CVE List
github.com/k3s-io/k3s (Go)from 1.35.0-rc1 before 1.35.3, from 1.34.0-rc1 before 1.34.6, before 1.33.10, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H
GitHub5.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

A 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.

Mitigations
  • Enable golang's built-in insecure path protections when restoring snapshots by setting theGODEBUG environment variable:
    GODEBUG=zipinsecurepath=0 k3s server --cluster-reset --cluster-reset-restore-path=/path/to/snapshot.zip
    
  • 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.
Additional Notes

Administrators should be aware of the cautions noted in the "Security" section of the documentation on Restoring Snapshots.

Go Vulnerability Database

K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression in github.com/k3s-io/k3s.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The 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.

NVD (es)

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.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-54250 changed 2026-06-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-jxr7-mqhw-9p98 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5973 changed 2026-07-28CC-BY-4.0
NVDCVE-2026-54250 changed 2026-10-25Public domain