Authorization Bypass Through User-Controlled Key Affecting zotregistry.dev/zot/pkg/api/ package, versions <2.1.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-ZOTREGISTRYDEVZOTPKGAPI-7443589
- published 16 Jul 2024
- disclosed 9 Jul 2024
- credit Blake Burkhart
Introduced: 9 Jul 2024
CVE-2024-39897 Open this link in a new tabHow to fix?
Upgrade zotregistry.dev/zot/pkg/api/
to version 2.1.0 or higher.
Overview
Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to the GetBlob()
function. An attacker can read images that the accessControl
policy denies if they have read access to any other second repository.
Notes:
This attack only allows accessing blobs, both config and layers, by digest. Manifests are not included.
This attack requires the attacker to know the name of a private image and its layer digests.
Workaround
The attack may be mitigated by configuring dedupe
: false in the "storage" settings. dedupe
is enabled by default using the BoltDB cache driver.