CVE-2026-54250

K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression

Published Jun 25, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

K3s’s etcd snapshot decompression can extract ZIP archive members with malicious names and write them to arbitrary filesystem locations. This allows an attacker who can trigger a restore operation to create or overwrite any file on the host, potentially compromising the Kubernetes cluster. The weakness is a classic directory traversal flaw (CWE-22).

Affected Systems

The vulnerability affects K3s releases older than 1.35.3+k3s1, 1.34.6+k3s1, and v1.33.10+k3s1. Administrators using these versions and performing etcd snapshot restores are impacted.

Risk and Exploitability

The CVSS score of 5.8 reflects a moderate severity. No EPSS data is available, so the likelihood of exploitation is unknown. The flaw is not listed in the CISA KEV catalog. Based on the description, the attack vector requires the attacker to trigger a restore of a maliciously crafted ZIP file; thus the attacker must have administrative access to the K3s control plane or the ability to supply snapshot archives.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check the K3s version; if it is older than 1.35.3+k3s1, 1.34.6+k3s1, or v1.33.10+k3s1, upgrade immediately to the supported release. The upgrade patch removes the unsafe snapshot decompression routine and validates archive paths before extraction. This is the definitive fix.
  • Ensure that only trusted and authenticated users can initiate etcd snapshot restores; restrict the restore API to administrators and enforce strict role‑based access control. This limits the opportunity for an attacker to supply malicious archives.
  • Require that uploaded snapshot archives are signed or have an associated checksum, and verify this integrity before extraction to ensure only legitimate snapshots are restored.

Generated by OpenCVE AI on June 25, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jxr7-mqhw-9p98 K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared K3s
K3s k3s
Vendors & Products K3s
K3s k3s
Type Values Removed Values Added
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.
Title K3s: ZIP Archive Path Traversal Vulnerability in etcd Snapshot Decompression
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 6:42 PM
Reserved
Jun 12, 2026, 4:25 PM
Status
Awaiting Analysis
Published
Jun 25, 2026, 7:16 PM
Modified
Oct 25, 2026, 10:10 PM