# CVE-2026-44884: Portainer Community Edition missing authorization in custom template endpoint

Source: https://junglewise.ai/threats/cve-2026-44884-portainer-community-edition-missing-authorization-in-custom  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-28. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

CVE-2026-44884 · Severity: medium · CVSS 6.5 · Published 2026-05-28

Portainer is a management tool used to deploy and manage containerized applications. A security flaw allows any logged-in user to view the contents of custom application templates, which often contain sensitive information like database passwords, API keys, or login credentials. This could lead to unauthorized access to other parts of a company's infrastructure if secrets are stored within these templates.

Technologies: [github.com/portainer/portainer (Go)](https://junglewise.ai/threats/technologies/github-com-portainer-portainer), [Portainer](https://junglewise.ai/threats/technologies/portainer), [Portainer Community Edition](https://junglewise.ai/threats/technologies/portainer-community-edition). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Portainer](https://junglewise.ai/threats/vendors/portainer).

## Quick answers

**Is CVE-2026-44884 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-44884 being exploited in the wild.

**How severe is CVE-2026-44884?** Medium severity, with a CVSS score of 6.5, published 28 May 2026.

**Which products and versions are affected?** github.com/portainer/portainer (Go) SEMVER:introduced=0, SEMVER:introduced=2.33.0,fixed=2.33.8; Portainer >= 2.33.0, < 2.33.8; >= 2.39.0, < 2.39.1; Portainer Community Edition 2.33.0 to 2.33.7, 2.39.0.

**Is there a fix for CVE-2026-44884?** 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-44884 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-44884?** 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

  ```sh
  go get github.com/portainer/portainer@v2.33.8
  ```


## Technical details

A missing authorization check in the `customTemplateFile` handler within `api/http/handler/customtemplates/customtemplate_file.go` allows any authenticated user to access the `GET /api/custom_templates/{id}/file` endpoint. By enumerating sequential integer IDs, an attacker can bypass Resource Control restrictions to retrieve the verbatim file content of any custom template. These templates frequently contain Docker Compose configurations with embedded environment-specific secrets such as connection strings and registry credentials. The vulnerability has been addressed in versions 2.33.8, 2.39.1, and 2.40.0.

## Affected products

- Portainer Portainer >= 2.33.0, < 2.33.8; >= 2.39.0, < 2.39.1

## Identifiers

- CVE-2026-44884
- GHSA-cqpq-2fgr-8mvc
- GO-2026-5333

## Timeline

- 2026-02-11: disclosed: Reported via GitHub Security Advisory
- 2026-03-19: patched: Version 2.39.1 released with fix
- 2026-03-25: patched: Version 2.40.0 released with fix
- 2026-05-07: patched: Version 2.33.8 released with fix
- 2026-05-14: advisory: GHSA-cqpq-2fgr-8mvc published

## References

- [https://api.github.com/users/duddnr0615k](https://api.github.com/users/duddnr0615k)
- [https://github.com/duddnr0615k](https://github.com/duddnr0615k)
- [https://api.github.com/users/duddnr0615k/gists%7B/gist_id%7D](https://api.github.com/users/duddnr0615k/gists%7B/gist_id%7D)
- [https://api.github.com/users/duddnr0615k/repos](https://api.github.com/users/duddnr0615k/repos)
- [https://avatars.githubusercontent.com/u/53675658?v=4](https://avatars.githubusercontent.com/u/53675658?v=4)
- [https://api.github.com/users/duddnr0615k/events%7B/privacy%7D](https://api.github.com/users/duddnr0615k/events%7B/privacy%7D)

## Related threats

- [Portainer Community Edition improper authentication in setup endpoints](https://junglewise.ai/threats/cve-2026-55761-portainer-community-edition-improper-authentication-in-setup)
- [Portainer Community Edition directory traversal in backup restore](https://junglewise.ai/threats/cve-2026-44885-portainer-community-edition-directory-traversal-in-backup-restore)
- [Portainer Community Edition sensitive token leakage via URL query parameter](https://junglewise.ai/threats/cve-2026-44883-portainer-community-edition-sensitive-token-leakage-via-url-query)
- [Portainer authorization bypass in Kubernetes middleware](https://junglewise.ai/threats/cve-2026-44882-portainer-authorization-bypass-in-kubernetes-middleware)
- [Portainer Community Edition arbitrary file read via Git symlink injection](https://junglewise.ai/threats/cve-2026-44881-portainer-community-edition-arbitrary-file-read-via-git-symlink)
