Description
Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:from-archive and certs:add commands extract user-supplied tar/zip archives into temporary directories without sanitizing member paths or preventing symlink traversal. GNU tar creates symlinks during extraction and follows them for subsequent entries, allowing an attacker to write arbitrary files anywhere writable by the dokku user — including overwriting ~/.ssh/authorized_keys to gain unrestricted shell access. This vulnerability is fixed in 0.38.2.
Published: 2026-06-26
Score: 9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dokku, a docker-based PaaS platform, processes user-supplied tar and zip archives in the git:from‑archive and certs:add commands without sanitizing the paths of archive members or preventing symlink traversal. The absence of path validation allows a malicious archive to contain a symlink pointing to an arbitrary target. During extraction, GNU tar follows the symlink and writes subsequent entries to the specified location. As a consequence, an attacker can write arbitrary files wherever the dokku user can write, including overwriting the ~/.ssh/authorized_keys file to inject their public key and obtain an unrestricted shell.

Affected Systems

The flaw exists in dokku versions earlier than 0.38.2. The integrity of installations running those releases is compromised, regardless of the underlying operating system. Users managing any dokku instance that may execute git:from‑archive or certs:add from external sources or untrusted archives are affected.

Risk and Exploitability

The CVSS score of 9.0 reflects an exploit that can modify application state and potentially allow credential abuse. EPSS is not available, but the high severity coupled with the ability to write arbitrary files places this vulnerability in a high‑risk category. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a user who can run the vulnerable Dokku commands, implying access to the Dokku console or CLI. An attacker can prepare a crafted archive and trigger the faulty extraction, then immediately modify authorized_keys or other writable files to establish persistent shell access.

Generated by OpenCVE AI on June 26, 2026 at 17:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dokku to version 0.38.2 or newer where the bug is fixed
  • If an upgrade is delayed, limit the use of git:from-archive and certs:add to trusted administrators and ensure those commands run under a non‑privileged user with minimal file system permissions
  • Audit existing ~/.ssh/authorized_keys and other sensitive files for unauthorized entries and re‑apply correct ownership and permissions

Generated by OpenCVE AI on June 26, 2026 at 17:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 26 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 26 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Description Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:from-archive and certs:add commands extract user-supplied tar/zip archives into temporary directories without sanitizing member paths or preventing symlink traversal. GNU tar creates symlinks during extraction and follows them for subsequent entries, allowing an attacker to write arbitrary files anywhere writable by the dokku user — including overwriting ~/.ssh/authorized_keys to gain unrestricted shell access. This vulnerability is fixed in 0.38.2.
Title Dokku: Arbitrary File Write via Tar Symlink Traversal in git:from-archive and certs:add
Weaknesses CWE-59
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-26T16:50:07.854Z

Reserved: 2026-05-12T01:48:40.451Z

Link: CVE-2026-45405

cve-icon Vulnrichment

Updated: 2026-06-26T16:49:46.208Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T17:30:05Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')