GHSA-44f7-5fj5-h4px

Suggest an improvement
Source
https://github.com/advisories/GHSA-44f7-5fj5-h4px
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-44f7-5fj5-h4px/GHSA-44f7-5fj5-h4px.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-44f7-5fj5-h4px
Aliases
Published
2025-03-11T15:27:16Z
Modified
2025-03-14T20:00:47Z
Severity
  • 7.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Ratify Azure authentication providers can leak authentication tokens to non-Azure container registries
Details

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.

Database specific
{
    "nvd_published_at": "2025-03-11T15:15:45Z",
    "cwe_ids": [
        "CWE-287",
        "CWE-497"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-11T15:27:16Z"
}
References

Affected packages

Go / github.com/ratify-project/ratify

Package

Name
github.com/ratify-project/ratify
View open source insights on deps.dev
Purl
pkg:golang/github.com/ratify-project/ratify

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.3

Go / github.com/ratify-project/ratify

Package

Name
github.com/ratify-project/ratify
View open source insights on deps.dev
Purl
pkg:golang/github.com/ratify-project/ratify

Affected ranges

Type
SEMVER
Events
Introduced
1.3.0
Fixed
1.3.2

Go / github.com/deislabs/ratify

Package

Name
github.com/deislabs/ratify
View open source insights on deps.dev
Purl
pkg:golang/github.com/deislabs/ratify

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.3