CVE-2025-48374: Zotregistry.dev/zot Zot Logs Secrets Vulnerability

MODERATE
Advisory Identifier: GHSA-c37v-3c8w-crq8
CWE-532
Published
Advisory Summary

CVE-2025-48374 is a MODERATE zot logs secrets vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Zotregistry.dev/zot libraries in the Go ecosystem. The issue involves zot logs secrets. Remediation is available by upgrading affected packages to version 1.4.4-0.20250522160828-8a99a3ed231f.

CVE-2025-48374 at a Glance

CVE Identifier CVE-2025-48374
GHSA Identifier GHSA-c37v-3c8w-crq8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Zotregistry.dev/zot
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-48374

To remediate this vulnerability, upgrade all affected Zotregistry.dev/zot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

zotregistry.dev/zot fixed: 1.4.4-0.20250522160828-8a99a3ed231f
Upgrade zotregistry.dev/zot to 1.4.4-0.20250522160828-8a99a3ed231f
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for zotregistry.dev/zot

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-48374, inspect your project dependencies for Zotregistry.dev/zot:

inspect dependencies for zotregistry.dev/zot

Analyze the terminal output to locate any version of Zotregistry.dev/zot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.4-0.20250522160828-8a99a3ed231f), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Zotregistry.dev/zot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2025-48374 Affected Zotregistry.dev/zot Versions

1 component(s)
Fixed Versions:
1.4.4-0.20250522160828-8a99a3ed231f
Product / Package Ecosystem Affected Versions Fixed Version
zotregistry.dev/zot
Go
< 1.4.4-0.20250522160828-8a99a3ed231f
1.4.4-0.20250522160828-8a99a3ed231f

References

Frequently Asked Questions

What is CVE-2025-48374?
CVE-2025-48374 is a security vulnerability in Zotregistry.dev/zot involving zot logs secrets under CWE-532: Insertion of Sensitive Information into Log File.
Which Zotregistry.dev/zot versions are affected?
Affected versions include releases prior to 1.4.4-0.20250522160828-8a99a3ed231f across affected packages: zotregistry.dev/zot.
What version fixes CVE-2025-48374?
Upgrading to 1.4.4-0.20250522160828-8a99a3ed231f (or the latest patched release for your respective branch) resolves the vulnerability.
Is zotregistry.dev/zot affected?
Yes, zotregistry.dev/zot is affected in releases prior to 1.4.4-0.20250522160828-8a99a3ed231f. Upgrade your dependency to 1.4.4-0.20250522160828-8a99a3ed231f or later.
What CWE is associated with CVE-2025-48374?
CVE-2025-48374 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2025-48374?
Run the dependency tree command: 'inspect dependencies for zotregistry.dev/zot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c37v-3c8w-crq8",
  "modified" : "2025-05-28T19:47:48Z",
  "published" : "2025-05-22T20:33:39Z",
  "aliases" : [ "CVE-2025-48374" ],
  "summary" : "zot logs secrets",
  "details" : "### Summary\nWhen using Keycloak as an oidc provider, the clientsecret gets printed into the container stdout logs for an example at container startup.\n\n### Details\nContainer Image (15.04.2025): ghcr.io/project-zot/zot-linux-amd64:latest\nHere is an example how the configuration can look which causes the above stated problem:\n\n`    http:\n      address: \"0.0.0.0\"\n      port: 5000\n      externalUrl: \"https://zot.example.com\"\n      auth: {\n        failDelay: 1,\n        openid: {\n          providers: {\n            oidc: {\n              name: \"Keycloak\",\n              clientid: \"zot-client-id\",\n              clientsecret: fsdfkmmiwljasdklfsjaskldjfkljewijrf234i52k3j45l,\n              keypath: \"\",\n              issuer: \"https://keycloak.example.com/realms/example\",\n              scopes: [\"openid\"]\n            }\n          }\n        }\n      }\n`\n\n### PoC\nSet up a blank new zot k8s deployment with the code snippet above.\n\n### Impact\nexposure of secrets, on configuring a oidc provider",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "zotregistry.dev/zot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.4-0.20250522160828-8a99a3ed231f"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/project-zot/zot/security/advisories/GHSA-c37v-3c8w-crq8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48374"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/project-zot/zot/commit/8a99a3ed231fdcd8467e986182b4705342b6a15e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/project-zot/zot"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3705"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-22T20:33:39Z",
    "nvd_published_at" : "2025-05-22T21:15:37Z"
  }
}