All vulnerabilities

Servers and applications

CVE-2026-44884

Missing authorization on custom template file endpoint exposes template content

Severity
Medium 6.0
Published
10 May 2026
Last changed
21 Jul 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.33.8, 2.39.1
Exploit chance
0.3% in the next 30 daysHigher than 17% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Missing authorization (CWE-862)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-cqpq-2fgr-8mvc
Sources
NVD, Project advisories (GitHub)

Description

A missing authorization vulnerability in the Custom Template file endpoint (GET /api/custom_templates/{id}/file) allows any authenticated user to read the file content of any custom template by enumerating sequential integer IDs, bypassing Resource Control access restrictions. Template files may contain environment-specific values such as connection strings, API tokens, or registry credentials that administrators would not expect standard users to read.

CWE-862 — Missing Authorization

Exploitation requires an authenticated user account and at least one custom template to exist. Template files are returned verbatim and may contain embedded credentials.

Any authenticated user (including the lowest-privilege standard user) can read the file content of every custom template in the instance. Custom templates commonly contain Docker Compose configuration, which may include environment-specific secrets such as database connection strings, API tokens, or registry credentials.

From portainer/portainer's security advisory.

Workarounds

There is no runtime configuration that blocks the vulnerable endpoint directly. Administrators who cannot immediately upgrade can reduce exposure by:

  • Avoiding storing secrets in custom templates until the patched release is deployed. Move sensitive configuration values to Portainer environment variables or an external secret store.
  • Reviewing existing custom templates for embedded secrets. Assume any secret previously stored in a custom template on an unpatched instance has been exposed to every authenticated user and rotate accordingly.

Neither replaces the fix.

Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · cpe:a:portainer:portainer
  • From 2.33.0 before 2.33.8
  • From 2.39.0 before 2.39.1
PortainerServers and applications · github:portainer/portainer
  • From 2.33.0 before 2.33.8
  • From 2.39.0 before 2.39.1

About Portainer

Open source software to manage Docker, docker swarm and Kubernetes

From Wikidata, CC0 1.0.
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

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-44884
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-44884
  • GitHub Advisory Database https://github.com/advisories/GHSA-cqpq-2fgr-8mvc
  • github.com https://github.com/portainer/portainer/security/advisories/GHSA-cqpq-2fgr-8mvc