Servers and applications
CVE-2026-44885
Path traversal in backup archive extraction allows arbitrary file write
- Severity
- Medium 5.5
- Published
- 10 May 2026
- Last changed
- 21 Jul 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 2.33.8
- Exploit chance
- 0.6% in the next 30 daysHigher than 49% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Change data · Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:L- Also known as
- GHSA-m8fg-67j7-cx4v
- Sources
- NVD, Project advisories (GitHub)
Description
Portainer's backup restore feature accepts a .tar.gz archive and extracts it to a target directory on the server. The extraction function (ExtractTarGz in api/archive/targz.go) constructed output paths using filepath.Clean(filepath.Join(outputDirPath, header.Name)). This combination does not prevent directory traversal — a tar entry named ../../etc/cron.d/evil resolves to a path outside the extraction root, so a crafted archive can write files to arbitrary locations on the server filesystem.
CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Exploitation requires administrator access to Portainer's backup restore endpoint. An administrator who is deceived into restoring a malicious archive, or whose credentials are compromised, can use this path to write files outside the Portainer data directory.
Workarounds
Administrators who cannot immediately upgrade should:
- Only restore archives from trusted sources. Do not restore archives received from untrusted parties or transmitted over unencrypted channels.
- Use backup encryption. Portainer's optional backup encryption requires the correct passphrase to decrypt before extraction; an attacker without the passphrase cannot craft a valid encrypted archive.
Neither of these replaces the fix.
Affected software
| Software | Affected versions |
|---|---|
PortainerServers and applications · cpe:a:portainer:portainer |
|
PortainerServers and applications · github:portainer/portainer |
|
About Portainer
Open source software to manage Docker, docker swarm and Kubernetes
- Docker Hub pulls
- 1,590,442,292Docker Hub, 15 Nov 2026
- GitHub stars
- 38,831GitHub, 15 Nov 2026
- Forks
- 2,940GitHub, 15 Nov 2026
- Latest release
- 2.45.3GitHub, 15 Nov 2026
- Released
- 21 Oct 2026GitHub
- License
- ZlibGitHub
- First published on GitHub
- 19 May 2016GitHub
Website Source code Docker image
Vulnerabilities in Portainer
- In our list
- 48
- Published in the last 12 months
- 30
- Critical, last 12 months
- 2
- High, last 12 months
- 15
- Known exploited
- 0
- GHSA-45qw-5wc8-pw8vCached ECR registry authorization token exposed to standard users in registry API responsesHigh 7.1 19 Nov 2026
- GHSA-2fmf-33r2-5vqgDocker network connect and disconnect let users attach or detach containers they cannot accessMedium 5.3 19 Nov 2026
- GHSA-6c57-xm2f-23fgWebSocket attach and exec let users open a shell in containers they cannot accessMedium 6.5 19 Nov 2026
- GHSA-xfw5-xx3q-mch6Stored Git credentials can be sent to an attacker-chosen host by users with read-only accessHigh 7.1 19 Nov 2026
- GHSA-83xv-v98x-cc83Stack list exposes Public stacks and their environment variables to users without access to the environmentMedium 6.0 19 Nov 2026
- GHSA-7pww-qg5m-5vpvGit stack redeploy exposes stored environment variables of stacks on environments the user cannot accessMedium 6.1 19 Nov 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-44885
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-44885
- GitHub Advisory Database https://github.com/advisories/GHSA-m8fg-67j7-cx4v
- github.com https://github.com/portainer/portainer/security/advisories/GHSA-m8fg-67j7-cx4v