Security & privacy

Docker Hub patches critical account conversion flaw after two years

Docker fixed a critical vulnerability in its Hub registry that allowed personal access tokens to be transferred to new organization owners without consent, potentially enabling unauthorized image push

A cracked digital padlock on a server rack with floating ghost keys representing the GhostPat vulnerability.
Illustration generated for this article

Docker has patched a critical security vulnerability in Docker Hub that allowed attackers to push, pull, or delete container images under another user’s identity. The flaw, present for over two years, was resolved on September 30, 2026, with no evidence of active exploitation found during the subsequent investigation.

What happened

The vulnerability, tracked as CVE-2026-105445, existed within the feature that converts a personal Docker Hub account into an organization. When a user performed this conversion, they were required to designate an existing user as the new organization owner. During this process, the system incorrectly transferred ownership of all Personal Access Tokens (PATs) from the converting account to the designated owner, while leaving the token secrets unchanged and accessible to the original creator.

This logic error meant that an attacker could create a PAT on their own account, convert that account into an organization, and name a victim as the owner. The attacker would retain control of the PAT, but the registry would now recognize it as belonging to the victim. This allowed the attacker to perform actions such as pushing malicious images to the victim’s repositories or deleting existing ones, all while appearing as the legitimate owner. The flaw did not grant access to the web interface, password changes, or two-factor authentication settings.

Peter Molnar and Krisztian Hozak of mptrdev.com discovered and reported the issue, which they named GhostPat. Docker deployed the fix less than four hours after receiving the report. In a security advisory released on October 12, Docker stated that it reviewed approximately 304,000 pushes made with transferred tokens and found no evidence of malicious exploitation. Most conversions involved accounts controlled by the same person or team.

How it works

Personal Access Tokens serve as password substitutes for interacting with the Docker registry via command-line tools or CI/CD pipelines. Each token is associated with specific permissions and an owning account. Under normal circumstances, the registry validates actions based on the token’s owner and permission level. The vulnerability arose because the account conversion process updated the recorded owner of the token in the backend database but did not invalidate the secret key held by the original creator.

Consequently, the token became a "ghost" credential: it technically belonged to the new organization owner in the system records, but the original creator still possessed the valid secret. Since the registry only checks the token secret and its current recorded owner, the original creator could authenticate as the new owner. This bypassed the intended isolation between users, allowing the holder of the token to act with the privileges of the designated organization owner within the registry scope.

Key details

  • Vulnerability ID: CVE-2026-105445, rated critical with a CVSS 4.0 score of 9.4.
  • Exposure window: The flaw was active from August 26, 2024, until the fix on September 30, 2026.
  • Scope: Limited to registry operations (push, pull, delete); did not affect web interface access or account recovery settings.
  • Detection: Docker analyzed 304,000 pushes from transferred tokens and found no malware or tampering in high-risk public images.
  • Notification: Docker emailed a limited number of affected users on October 2 and deactivated identified transferred tokens on October 8.
  • Documentation: Docker’s own help pages explicitly described this token transfer behavior for about 17 months before the fix.

Why it matters

For software engineers and DevOps teams, this incident highlights the risks inherent in supply chain dependencies and identity management within container registries. Although no exploitation was confirmed, the potential impact was severe: an attacker could have injected malicious code into trusted images, compromising downstream applications. This mirrors previous incidents where stolen credentials were used to push malicious versions of popular tools like Trivy and KICS.

The flaw also underscores the importance of understanding how platform features interact with authentication mechanisms. Many users may have converted accounts assuming standard ownership transfer protocols, unaware that their PATs were being reassigned. For organizations relying on automated pipelines, this serves as a reminder to audit token usage and prefer organization-level credentials over individual PATs for shared resources.

What you can do

  • Check your email: If you did not receive a notification from Docker on October 2, your account was not exposed to this specific vulnerability.
  • Audit your tokens: Navigate to Account Settings > Personal access tokens. Look for tokens you did not create or organizations you do not remember joining.
  • Revoke unused tokens: Delete any PATs that are no longer needed or whose origin is unclear. Rotate tokens used in CI/CD pipelines immediately if you are unsure of their status.
  • Use organization access tokens: For automation belonging to a team, use organization-managed tokens instead of individual PATs. These require Docker Team or Business subscriptions and are managed by owners.
  • Review activity logs: Organization owners can check push history in Docker Home activity logs, which retain data for 30 days. Older entries are accessible via the Docker Hub API.
  • Verify image signatures: If you publish images, verify their signatures and trace them back to specific CI runs to ensure integrity, as demonstrated by maintainer Todd Matens.
  • #docker
  • #security
  • #container-registry
  • #vulnerability
  • #devops

Tools from the Bytechap store

Keep reading

All stories