All vulnerabilities

Servers and applications

GHSA-45qw-5wc8-pw8v

Cached ECR registry authorization token exposed to standard users in registry API responses

Severity
High 7.1
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
19 Nov 2026
Fixed in
2.39.9, 2.45.4
Weakness
Information exposure (CWE-200)Insufficiently protected credentials (CWE-522)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Portainer can integrate with Amazon Elastic Container Registry (ECR). For an ECR registry, Portainer caches a short-lived registry authorization token on the registry record and refreshes it when needed. The cached token is a working docker-login credential for the registry, valid for about 12 hours.

Two read endpoints that return registry records to standard users removed the stored password but not this cached token: the environment registry list (GET /api/endpoints/{id}/registries) and the registry inspection endpoint (GET /api/registries/{id}). Any authenticated standard user who could read a registry through either endpoint received the token and its expiry time in the response.

The issue is exploitable over the network with a single request. It needs a valid low-privilege account, no user interaction, and an ECR registry that holds a cached token.

From portainer/portainer's security advisory. Shortened; the full text is there.

Workarounds

Administrators who cannot immediately upgrade can reduce exposure by:

  • Limit what the ECR credential can do. Use an AWS IAM principal for Portainer that has pull-only access to the specific repositories it needs, so a token obtained from Portainer carries only that scope. Least-privilege IAM is the deployer’s responsibility under Portainer’s shared responsibility security policy and limits what a token can do. Returning the token to standard users was Portainer’s responsibility, and is fixed.
  • Reduce where the registry is assigned.
Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · github:portainer/portainer
  • From 2.39.0 before 2.39.9
  • From 2.45.0 before 2.45.4

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