zot logs secrets
Published 22 May 2025 · Updated 28 May 2025
Is your project on an affected zotregistry.dev/zot?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.4.4-0.20250522160828-8a99a3ed231f
- Fixed in
- 1.4.4-0.20250522160828-8a99a3ed231f
go get zotregistry.dev/zot@v1.4.4-0.20250522160828-8a99a3ed231fDetails
Summary
When using Keycloak as an oidc provider, the clientsecret gets printed into the container stdout logs for an example at container startup.
Details
Container Image (15.04.2025): ghcr.io/project-zot/zot-linux-amd64:latest Here is an example how the configuration can look which causes the above stated problem:
http:
address: "0.0.0.0"
port: 5000
externalUrl: "https://zot.example.com"
auth: {
failDelay: 1,
openid: {
providers: {
oidc: {
name: "Keycloak",
clientid: "zot-client-id",
clientsecret: fsdfkmmiwljasdklfsjaskldjfkljewijrf234i52k3j45l,
keypath: "",
issuer: "https://keycloak.example.com/realms/example",
scopes: ["openid"]
}
}
}
}
PoC
Set up a blank new zot k8s deployment with the code snippet above.
Impact
exposure of secrets, on configuring a oidc provider
Is GHSA-c37v-3c8w-crq8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected zotregistry.dev/zot, and gives you the command that fixes it.
More advisories for zotregistry.dev/zot
- LowCVE-2026-61833zot: Bearer authentication maps DELETE to push scope, allowing unauthorized deletion in zotregistry.dev/zot · 28 Sept 2026
- LowCVE-2026-31801zot’s create-only policy allows overwrite attempts of existing latest tag (update permission not required) in zotregistry.dev/zot · 12 Mar 2026
- HighCVE-2026-31801zot’s create-only policy allows overwrite attempts of existing latest tag (update permission not required) · 10 Mar 2026
- LowCVE-2025-23208Zot IdP group membership revocation ignored in zotregistry.dev/zot · 28 Jan 2025
- HighCVE-2025-23208Zot IdP group membership revocation ignored · 17 Jan 2025
- LowCVE-2024-39897Cache driver GetBlob() allows read access to any blob without access control check in zotregistry.dev/zot · 10 Jul 2024
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.