# CVE-2024-39897: Cache driver GetBlob() allows read access to any blob without access control check

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-07-09T18:48:24.335Z
- Modified: 2026-09-10T03:50:16.189Z
- Also known as: GHSA-55r9-5mx9-qq7r, GO-2024-2979
- Related: CGA-hqg8-7px4-ppfh
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- project-zot zot: < 2.1.0
- zotregistry.io/zot (Go): before 2.1.0; all versions
- zotregistry.dev/zot (Go): before 2.1.0; all versions
- zotregistry zot: before 2.1.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.3 Medium `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> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39897> (advisory)
- <https://github.com/project-zot/zot> (package)

## Sources

- CVE List: [CVE-2024-39897](https://www.cve.org/CVERecord?id=CVE-2024-39897), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-55r9-5mx9-qq7r](https://github.com/advisories/GHSA-55r9-5mx9-qq7r), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2979](https://pkg.go.dev/vuln/GO-2024-2979), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-39897](https://nvd.nist.gov/vuln/detail/CVE-2024-39897), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39897 · Whole record: https://cve.day/CVE-2024-39897.json · Rebuilt by cve.day 2026-11-25T22:58:42.695Z
