{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-39897","published":"2024-07-09T19:15:12.953000Z","last_modified":"2026-06-17T07:42:59.157000Z","status":"Analyzed","cvss":{"version":"3.1","score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-639"],"cpes":[{"criteria":"cpe:2.3:a:zotregistry:zot:*:*:*:*:*:*:*:*","part":"a","vendor":"zotregistry","product":"zot","version_end_excluding":"2.1.0"}],"cpes_truncated":false,"vendors":["zotregistry"],"products":["zotregistry/zot"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00516,"percentile":0.37235,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-55r9-5mx9-qq7r","ecosystem":"Go","name":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","ranges":[{"introduced":"0","fixed":"2.1.0"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2979","ecosystem":"Go","name":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-55r9-5mx9-qq7r","ecosystem":"Go","name":"zotregistry.io/zot","purl":"pkg:golang/zotregistry.io/zot","ranges":[{"introduced":"0","fixed":"2.1.0"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2979","ecosystem":"Go","name":"zotregistry.io/zot","purl":"pkg:golang/zotregistry.io/zot","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":26,"links":{"html_es":"/es/cve/CVE-2024-39897/","html_en":"/en/cve/CVE-2024-39897/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-39897","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-39897"},"untrusted":{"vendor_name":"Zotregistry","product_name":"Zot","desc_en":"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.","affected":[{"untrusted_vendor":"project-zot","untrusted_product":"zot","versions":[]}],"references":[{"url":"https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df","tags":["Patch"]},{"url":"https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r","tags":["Mitigation","Vendor Advisory"]}]}}