{"cve":"CVE-2024-39897","nvd":{"published":"2024-07-09T19:15:12.953","modified":"2026-06-17T07:42:59.157","status":"Analyzed","description":"zot is an OCI image registry. Prior to 2.1.0, the cache driver `GetBlob()` allows read access to any blob without access control check. If a Zot `accessControl` policy allows users read access to some repositories but restricts read access to other repositories and `dedupe` is enabled (it is enabled by default), then an attacker who knows the name of an image and the digest of a blob (that they do not have read access to), they may maliciously read it via a second repository they do have read access to. \n This attack is possible because [`ImageStore.CheckBlob()` calls `checkCacheBlob()`](https://github.com/project-zot/zot/blob/v2.1.0-rc2/pkg/storage/imagestore/imagestore.go#L1158-L1159) to find the blob a global cache by searching for the digest. If it is found, it is copied to the user requested repository with `copyBlob()`. The attack may be mitigated by configuring \"dedupe\": false in the \"storage\" settings. The vulnerability is fixed in 2.1.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3},"cwes":["CWE-639"],"references":["https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df","https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r","https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df","https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r"],"products":["zotregistry:zot"],"source":"nvd","synced_at":"2026-10-19T21:52:42.518321223+00:00"},"epss":{"cve":"CVE-2024-39897","score":0.00298,"percentile":0.2252,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-55r9-5mx9-qq7r","url":"https://osv.dev/vulnerability/GHSA-55r9-5mx9-qq7r","summary":"Cache driver GetBlob() allows read access to any blob without access control check","modified":"2026-09-10T03:50:16.189805769Z","packages":[{"ecosystem":"Go","name":"zotregistry.io/zot","purl":"pkg:golang/zotregistry.io/zot","ranges":["<2.1.0"],"fixed":["2.1.0"]},{"ecosystem":"Go","name":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","ranges":["<2.1.0"],"fixed":["2.1.0"]}]},{"id":"GO-2024-2979","url":"https://osv.dev/vulnerability/GO-2024-2979","summary":"Cache driver GetBlob() allows read access to any blob without access control check in zotregistry.dev/zot","modified":"2026-02-04T02:52:53.314879Z","packages":[{"ecosystem":"Go","name":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"zotregistry.io/zot","purl":"pkg:golang/zotregistry.io/zot","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}