chore(deps): update module github.com/distribution/distribution/v3 to v3.1.1 [security]#1454
Merged
paralta merged 2 commits intoMay 5, 2026
Conversation
… v3.1.1 [security]
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).
|
Signed-off-by: Catarina Paralta <clouropa@cisco.com>
paralta
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v3.1.0→v3.1.1Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Distribution's tag deletion bypasses
storage.delete.enabledconfigurationCVE-2026-41888 / GHSA-6pjf-3r9x-m592
More information
Details
Summary
Tag deletion via the
DELETE /v2/<name>/manifests/<tag>endpoint bypasses thestorage.delete.enabled: falseconfiguration, allowing any API client to remove tags from repositories even when the operator has explicitly disabled deletion.Details
When
storage.delete.enabledis configured to false, digest-based manifest deletion is correctly rejected by the guard in registry/storage/linkedblobstore.go:212-215.However, tag deletion takes a separate code path that never checks this setting:
In
registry/handlers/manifests.go:439-453,DeleteManifestdetects a tag reference, callstagService.Untag(), returns, never consultingregistry.deleteEnabled.In turn,
tagStore.Untag()calls the storage driver directly to delete the tag path without checking whether deletes are enabled.PoC
Using a paired down Distribution configuration that explicitly disables deletes, such as this one, stored as
config.yaml:Start a local Distribution, mounting in the above configuration from the current directory:
docker run -p 5000:5000 -v "$(pwd)/config.yaml":/config.yaml --restart=always --name registry registry:3.1.0 /config.yamlIn a separate terminal session/tab, push
alpine:3.23into the running instance:Confirm that the tag shows up as expected:
Issue a delete for the
3.23tag:curl -X DELETE 'http://localhost:5000/v2/alpine/manifests/3.23'Observe that the tag is now gone, despite deletes being disabled:
Impact
This is an authorization bypass vulnerability. Any client with network access to the registry can delete tags despite the operator having disabled deletion. This can cause denial of service for consumers pulling by tag and enables supply-chain disruption by removing trusted tags from a registry that the operator and/or users believed to be immutable.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
distribution/distribution (github.com/distribution/distribution/v3)
v3.1.1Compare Source
Welcome to the
v3.1.1release of registry!This is a stable release
Please try out the release binaries and report any issues at
https://github.com/distribution/distribution/issues.
Notable Changes
nquery parameter in proxy mode instead of returning 400 (#4856)See the full changelog below for the full list of changes.
What's Changed
New Contributors
Full Changelog: distribution/distribution@v3.1.0...v3.1.1