{"id":"CVE-2024-39897","published":"2024-07-09T18:48:24Z","modified":"2024-08-02T04:33:11Z","title":"Cache driver GetBlob() allows read access to any blob without access control check","vendor":"project-zot","product":"zot","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00516,"percentile":0.37191,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":7.44},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"project-zot","affectedVersions":[{"vendor":"project-zot","product":"zot","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-10T20:35:45.771671Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"zotregistry.io/zot","vulnerableRanges":["<2.1.0","all versions"],"patched":["2.1.0"],"from":["GHSA-55r9-5mx9-qq7r","GO-2024-2979"],"provenance":"source"},{"ecosystem":"Go","package":"zotregistry.dev/zot","vulnerableRanges":["<2.1.0","all versions"],"patched":["2.1.0"],"from":["GHSA-55r9-5mx9-qq7r","GO-2024-2979"],"provenance":"source"}],"summary":{"text":"In project-zot's zot OCI image registry, the cache driver's GetBlob() function lacks an access control check, so blobs can be read without authorization when deduplication is in use. An attacker with read access to at least one repository, who knows an image name and the digest of a blob in a repository they cannot read, can retrieve that blob through a repository they are permitted to access, provided the accessControl policy restricts those repositories and \"dedupe\" is enabled (the default).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:07Z"},"euvd":{"id":"EUVD-2024-2258","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-48374","published":"2025-05-22","fixed":"1.4.4-0.20250522160828-8a99a3ed231f","kev":false},{"cve":"CVE-2024-39897","published":"2024-07-09","fixed":"2.1.0","kev":false},{"cve":"CVE-2025-23208","published":"2025-01-17","fixed":"2.1.2","kev":false,"link":{"from":"CVE-2024-39897","to":"CVE-2025-23208","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:zotregistry.dev/zot","fromFixed":"2.1.0","toFixed":"2.1.2","daysApart":192}]}}],"package":"Go:zotregistry.dev/zot"}}