NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-54250: K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression

mediumCVSS 3.1 5.8GHSA-jxr7-mqhw-9p98

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.

Published Jul 14, 2026

Affected packages

github.com/k3s-io/k3s

Ecosystem
Go
Affected
>= 1.35.0-rc1, < 1.35.3
Fixed in
1.35.3
Check
go list -m github.com/k3s-io/k3s

github.com/k3s-io/k3s

Ecosystem
Go
Affected
>= 1.34.0-rc1, < 1.34.6
Fixed in
1.34.6
Check
go list -m github.com/k3s-io/k3s

github.com/k3s-io/k3s

Ecosystem
Go
Affected
< 1.33.10
Fixed in
1.33.10
Check
go list -m github.com/k3s-io/k3s

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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: ``bash 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.

Credited to f1veT.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries