# GO-2026-6225: Credential leakage to untrusted hosts in github.com/chrismellard/docker-credential-acr-env

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-18T18:05:09.000Z
- Modified: 2026-08-26T01:20:18.685Z
- Related: CGA-rvv4-gfj5-24qv

## Description

In github.com/chrismellard/docker-credential-acr-env/pkg/credhelper, the regular expression used by isACRRegistry to validate Azure Container Registry hostnames is unanchored. As a result, arbitrary hostnames containing the substring ".azurecr.io" (such as evil.azurecr.io.attacker.com) are treated as valid ACR registries, causing ACRCredHelper.Get to send the Azure Active Directory (AAD) access token to attacker-controlled hosts.

(As written by Go Vulnerability Database.)

## Affected

- github.com/chrismellard/docker-credential-acr-env (Go): all versions

## References

- <https://github.com/chrismellard/docker-credential-acr-env/issues/21> (report)
- <https://github.com/osscontainertools/docker-credential-acr> (web)

## Sources

- Go Vulnerability Database: [GO-2026-6225](https://pkg.go.dev/vuln/GO-2026-6225), CC-BY-4.0, modified 2026-08-26

---

Page: https://cve.day/GO-2026-6225 · Whole record: https://cve.day/GO-2026-6225.json · Rebuilt by cve.day 2026-11-25T22:56:25.276Z
