{"id":"EUVD-2024-2258","enisaUuid":"3170b019-dda2-35cc-98de-a0301c9f386a","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.","datePublished":"Jul 9, 2024, 6:48:24 PM","dateUpdated":"Aug 2, 2024, 4:33:11 AM","baseScore":4.3,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","references":"https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r\nhttps://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df\n","aliases":"CVE-2024-39897\nGHSA-55r9-5mx9-qq7r\n","assigner":"GitHub_M","epss":0.3,"enisaIdProduct":[{"id":"11af04c1-9c80-38eb-8e22-1748d2e1e79a","product":{"name":"zot","vendor":{"name":"project-zot"}},"product_version":"\u003c 2.1.0"}],"enisaIdVendor":[{"id":"a63c96ef-3e8f-3267-a38d-b1a549fff1e3","vendor":{"name":"project-zot"}}],"enisaIdVulnerability":[{"id":"c2559a7c-80e5-3099-8e30-95bac8041204","vulnerability":{"id":"CVE-2024-39897","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.","datePublished":"Jul 9, 2024, 6:48:24 PM","dateUpdated":"Aug 2, 2024, 4:33:11 AM","status":"PUBLISHED","baseScore":4.3,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","references":"https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r\nhttps://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df\n","enisa_id":"EUVD-2024-2258\n","assigner":"GitHub_M","epss":0.3,"dataProcessed":"Nov 16, 2026, 7:16:58 AM","vulnerabilityProduct":[{"id":"3da6e3ea-6225-3906-9cf4-8aa061bbc387","product":{"name":"zot","vendor":{"name":"project-zot"}},"product_version":"\u003c 2.1.0"}],"vulnerabilityVendor":[{"id":"ba8489bd-67d9-316b-87f7-80814f269fd3","vendor":{"name":"project-zot"}}]}},{"id":"ffc26779-0613-3d9b-bf83-c9a5ccc7e506","vulnerability":{"id":"GHSA-55r9-5mx9-qq7r","description":"Cache driver GetBlob() allows read access to any blob without access control check","datePublished":"Jul 9, 2024, 9:04:00 PM","dateUpdated":"Jul 10, 2024, 6:34:34 PM","baseScore":null,"references":"https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-39897\nhttps://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df\nhttps://github.com/project-zot/zot\n","enisa_id":"EUVD-2024-2258\n","aliases":"CVE-2024-39897\nGHSA-55r9-5mx9-qq7r\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:38:00 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}