Advisory

GHSA-jxr7-mqhw-9p98

Also known as: CVE-2026-54250, GO-2026-5973

Summary

K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-14 17:54 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/k3s-io/k3s

Go · All systems

Affected

  • introduced 1.35.0-rc1, fixed 1.35.3 (semver)

Fixed versions

1.35.3

Fix

github.com/k3s-io/k3s

Go · All systems

Affected

  • introduced 1.34.0-rc1, fixed 1.34.6 (semver)

Fixed versions

1.34.6

Fix

github.com/k3s-io/k3s

Go · All systems

Affected

  • introduced 0, fixed 1.33.10 (semver)

Fixed versions

1.33.10

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences