CVE-2024-39897
MEDIUM 4.3CVSS 3.1Cache driver GetBlob() allows read access to any blob without access control check
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() 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.
- Published
- 9 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-639
- Also known as
- GHSA-55r9-5mx9-qq7rGO-2024-2979
- Sources
- NVDJSONOSV GHSA-55r9-5mx9-qq7rJSONOSV GO-2024-2979JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | zotregistry | zotcpe:2.3:a:zotregistry:zot:*:*:*:*:*:*:*:* |
< 2.1.0 | 2.1.0 |
| OSV | Go | zotregistry.io/zot | < 2.1.0 | 2.1.0 |
| OSV | Go | zotregistry.dev/zot | < 2.1.0 | 2.1.0 |
| OSV | Go | zotregistry.dev/zot | all versions | |
| OSV | Go | zotregistry.io/zot | all versions |
References
- https://github.com/project-zot/zot/commit/aaee0220e46bdadd12115ac67c19f9d3153eb1df · Patch, WEB
- https://github.com/project-zot/zot/security/advisories/GHSA-55r9-5mx9-qq7r · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-39897 · ADVISORY
- https://github.com/project-zot/zot · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 9 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jul 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Jul 2024)