CVE-2024-39897
Cache driver GetBlob() allows read access to any blob without access control check
Also known as GHSA-55r9-5mx9-qq7r, GO-2024-2979
Mitigation
- Upgrade zotregistry.io/zot to 2.1.0 or later.
- Upgrade zotregistry.dev/zot to 2.1.0 or later.
Who should check
- Projects that depend on Go package zotregistry.io/zot (< 2.1.0)
- Projects that depend on Go package zotregistry.dev/zot (< 2.1.0)
- Anyone running project-zot zot < 2.1.0
Vulnerability facts
- Affected
- zotregistry.io/zot < 2.1.0; zotregistry.dev/zot < 2.1.0
- Fixed in
- 2.1.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.52% chance of exploitation in 30 days (percentile 37, 2026-11-26)
- CWE
- CWE-639
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go zotregistry.io/zot | < 2.1.0 | 2.1.0 | osv |
| Go zotregistry.dev/zot | < 2.1.0 | 2.1.0 | osv |
| project-zot zot | < 2.1.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-39897. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-39897.md Affected: zotregistry.io/zot < 2.1.0; zotregistry.dev/zot < 2.1.0 Fixed in: 2.1.0 Steps: 1. Search this machine and project for zotregistry.io/zot (Go), zotregistry.dev/zot (Go), project-zot zot: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-39897 being exploited?
There is no confirmed exploitation: CVE-2024-39897 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-39897?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-39897?
zotregistry.io/zot < 2.1.0; zotregistry.dev/zot < 2.1.0.
Is there a fix for CVE-2024-39897?
Yes. Fixed in 2.1.0. Upgrade zotregistry.io/zot to 2.1.0 or later. Upgrade zotregistry.dev/zot to 2.1.0 or later.
How do I check if I'm affected by CVE-2024-39897?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.