github.com/k3s-io/k3s
Affected
- introduced
1.35.0-rc1, fixed1.35.3(semver)
Fixed versions
1.35.3
Fix
- Fixed version
1.35.3go get github.com/k3s-io/[email protected]
Advisory
Also known as: CVE-2026-54250, GO-2026-5973
K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression
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
GODEBUG environment variable: bash GODEBUG=zipinsecurepath=0 k3s server --cluster-reset --cluster-reset-restore-path=/path/to/snapshot.zip .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.
Medium Basis: The source's own band: MODERATE
1.35.0-rc1, fixed 1.35.3 (semver)1.35.3
1.35.3go get github.com/k3s-io/[email protected]1.34.0-rc1, fixed 1.34.6 (semver)1.34.6
1.34.6go get github.com/k3s-io/[email protected]0, fixed 1.33.10 (semver)1.33.10
1.33.10go get github.com/k3s-io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0