CVE-2026-44885: Portainer Community Edition directory traversal in backup restore

CVE-2026-44885 · Severity: medium · CVSS 5.5 · Published 2026-05-28

Portainer, a popular management tool for containerized environments like Docker and Kubernetes, contains a flaw in its backup restoration process. An attacker with administrative access could upload a specially crafted backup file to write malicious files anywhere on the server's filesystem. This could lead to permanent control over the server or disruption of services.

Technologies: github.com/portainer/portainer (Go), Portainer, Portainer Community Edition. Vendors: Go, Portainer.

Quick answers

Is CVE-2026-44885 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-44885 being exploited in the wild.
How severe is CVE-2026-44885?
Medium severity, with a CVSS score of 5.5, published 28 May 2026.
Which products and versions are affected?
github.com/portainer/portainer (Go) >= 2.33.0, < 2.33.8, SEMVER:introduced=0, SEMVER:introduced=2.33.0,fixed=2.33.8; Portainer < 2.33.8, 2.34.x - 2.38.x, < 2.39.0, >= 2.33.0, < 2.33.8; < 2.39.0; Portainer Community Edition 2.33.0 to < 2.33.8; 2.34.x to 2.38.x (EOL).
Is there a fix for CVE-2026-44885?
Yes. github.com/portainer/portainer (Go): upgrade to 2.33.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-44885 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-44885?
Check whether you run github.com/portainer/portainer (Go), Portainer or Portainer Community Edition at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/portainer/portainer (Go): upgrade to 2.33.8 or later
    go get github.com/portainer/portainer@v2.33.8

Technical details

A path traversal vulnerability (CWE-22) exists in Portainer's `ExtractTarGz` function within `api/archive/targz.go`. The application uses `filepath.Join` and `filepath.Clean` on user-supplied filenames within a TAR archive without verifying that the resulting path remains within the intended destination directory. An attacker with Portainer administrator privileges can upload a malicious `.tar.gz` archive containing entries with traversal sequences (e.g., `../../etc/cron.d/evil`) to achieve arbitrary file writes. This can be used to gain host persistence or execute code, depending on the environment's permissions. The issue is fixed in versions 2.33.8 (LTS) and 2.39.0.

Affected products

  • Portainer Portainer >= 2.33.0, < 2.33.8; < 2.39.0

Identifiers

  • CVE-2026-44885
  • GHSA-m8fg-67j7-cx4v
  • GO-2026-5498

Timeline

  • 2026-02-16: patched: Fix merged to develop branch
  • 2026-02-25: advisory: Version 2.39.0 released with fix
  • 2026-05-07: advisory: Version 2.33.8 released with backported fix
  • 2026-05-14: disclosed: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.