CVE-2024-39897

Zot's Dedupe Deception: How a Cache Feature Became an Authorization Bypass

Alon Barad
Alon Barad
Software Engineer

Jan 3, 2026·9 min read·0 visits

Executive Summary (TL;DR)

Zot's deduplication feature, enabled by default, allowed authenticated users to steal container image layers from private repositories. By requesting a known blob digest in a repository they *did* have access to, they could trick Zot into copying the restricted blob from a global cache, bypassing all access control policies.

Zot, an OCI image registry, contains a critical authorization bypass vulnerability in its blob deduplication feature. Prior to version 2.1.0, an authenticated attacker with access to a single repository could read any blob from any other repository on the same instance, provided they knew the blob's digest. The flaw stemmed from the global cache, which would happily serve up blobs without verifying if the user was authorized to access the blob's original source repository, effectively turning a storage optimization feature into a data exfiltration vector.

Fix Analysis (1)

Technical Appendix

CVSS Score
4.3/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS Probability
0.36%
Top 99% most exploited

Affected Systems

Zot OCI Image Registry

Affected Versions Detail

Product
Affected Versions
Fixed Version
zot
project-zot
< 2.1.02.1.0
AttributeDetail
CWE IDCWE-639
CWE NameAuthorization Bypass Through User-Controlled Key
Attack VectorNetwork
Privileges RequiredLow (Authenticated User)
CVSS 3.1 Score4.3 (Medium)
ImpactLow Confidentiality (Information Disclosure)
Exploit StatusProof-of-Concept
KEV StatusNot Listed
CWE-639
Authorization Bypass Through User-Controlled Key

The software uses a user-controlled key or index to access, modify, or retrieve a resource, but it does not sufficiently validate the key, allowing an attacker to access unauthorized resources.

Vulnerability Timeline

Fix was committed to the main branch.
2024-07-08
CVE-2024-39897 was published by NVD.
2024-07-09
GitHub Security Advisory GHSA-55r9-5mx9-qq7r published.
2024-07-09
Zot version 2.1.0, containing the fix, was released.
2024-07-09

Subscribe to updates

Get the latest CVE analysis reports delivered to your inbox.