github.com/ratify-project/ratify
Affected
- introduced
0, fixed1.2.3(semver)
Fixed versions
1.2.3
Fix
- Fixed version
1.2.3go get github.com/ratify-project/[email protected]
Advisory
Also known as: CVE-2025-27403, GO-2025-3511
Ratify Azure authentication providers can leak authentication tokens to non-Azure container registries
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.
High Basis: The source's own band: HIGH
0, fixed 1.2.3 (semver)1.2.3
1.2.3go get github.com/ratify-project/[email protected]1.3.0, fixed 1.3.2 (semver)1.3.2
1.3.2go get github.com/ratify-project/[email protected]0, fixed 1.2.3 (semver)1.2.3
1.2.3go get github.com/deislabs/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0