All vulnerabilities

Servers and applications

GHSA-xfw5-xx3q-mch6

Stored Git credentials can be sent to an attacker-chosen host by users with read-only access

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
Improper access control (CWE-284)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 lets users save Git sources and Git-backed stacks, edge stacks and custom templates with stored repository credentials, and offers a connection test and repository browsing for them. The connection test for a saved GitOps source accepted per-request overrides of the repository URL while keeping the source's stored credentials, and only required read access to the source. Any authenticated user who can read a shared, credentialed Git source could therefore cause Portainer to send that source's stored username and password or token to a host of the user's choosing.

Because Git's HTTP transport sends Basic credentials on the very first request, without waiting for a challenge, the attacker's server receives the credential in plaintext. The credential is otherwise hidden from read-only users.

In Portainer Business Edition, the Git repository browsing endpoints (listing references, searching files, previewing a file, and reading Helm values) had the same flaw.

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

Workarounds

Administrators who cannot immediately upgrade can reduce exposure by:

  • Restrict sharing of credentialed Git sources. Limit Git sources that hold stored credentials to administrators or their owner. This removes collaborative access for other users.
  • Limit access to Git-backed stacks and custom templates (Business Edition). Users who can see a Git-backed stack or custom template with stored credentials can trigger the repository browsing flaw.
  • Use narrowly scoped, read-only tokens.
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.40.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