PT-2026-58973 · Go · Github.Com/K3S-Io/K3S
Published
2026-07-14
·
Updated
2026-07-14
CVSS v3.1
5.8
Medium
| Vector | AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H |
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 the
GODEBUGenvironment variable:bashGODEBUG=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.
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Github.Com/K3S-Io/K3S