Loading...
Skip to main content

CVE-2025-27403 — Vulnerability in github.com/ratify-project/ratify...

HIGH

Ratify Azure authentication providers can leak authentication tokens to non-Azure container registries

Published March 11, 2025Updated March 14, 2025Source: osv

Summary

### Impact In a Kubernetes environment, Ratify can be configured to authenticate to a private Azure Container Registry (ACR). The Azure workload identity and Azure managed identity authentication providers are configured in this setup. Users that configure a private ACR to be used with the Azure authentication providers may be impacted. Both Azure authentication providers attempt to exchange an Entra ID (EID) token for an ACR refresh token. However, Ratify’s Azure authentication providers did not verify that the target registry is an ACR. This could have led to the EID token being presented to a non-ACR registry during token exchange. EID tokens with ACR access can potentially be extracted and abused if a user workload contains an image reference to a malicious registry. ### Patches The Azure workload identity and Azure managed identity authentication providers are updated to add new validation prior to EID token exchange. Validation relies upon registry domain validation against a pre-configured list of well-known ACR endpoints. EID token exchange will be executed only if at least one of the configured well-known domain suffixes (wildcard support included) matches the registry domain of the image reference. ### Credits The `ratify` project would like to thank Shiwei Zhang (@shizhMSFT) and Binbin Li (@binbin-li) for responsibly disclosing the issue and thank Binbin Li (@binbin-li) and Akash Singhal (@akashsinghal) for actively mitigating the issue.

Advisory Timeline

  • First published March 11, 2025 (580 days ago).
  • Last revised March 14, 2025 — 3 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/ratify-project/ratify to 1.3.2 or later
go get github.com/ratify-project/ratify@v1.3.2
Go
Update github.com/deislabs/ratify to 1.2.3 or later
go get github.com/deislabs/ratify@v1.2.3
Go
Update github.com/ratify-project/ratify to 1.2.3 or later
go get github.com/ratify-project/ratify@v1.2.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/ratify-project/ratify
go
All versions1.3.2
github.com/deislabs/ratify
go
All versions1.2.3
github.com/ratify-project/ratify
go
All versions1.2.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:L

Frequently Asked Questions

What is CVE-2025-27403?
Ratify Azure authentication providers can leak authentication tokens to non-Azure container registries This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.2/10).
How do I check if my project is affected by CVE-2025-27403?
CVE-2025-27403 affects github.com/ratify-project/ratify and github.com/deislabs/ratify. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-27403 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.2

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-44f7-5fj5-h4px
GO-2025-3511

Related CVEs

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies