<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-30T15:24:10.512871+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-6pjf-3r9x-m592</id>
    <title>GHSA-6pjf-3r9x-m592 — Distribution's tag deletion bypasses `storage.delete.enabled` configuration</title>
    <updated>2026-09-30T15:24:10.513936+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/distribution/distribution/v3, Go: github.com/distribution/distribution</p>
<p>### Summary</p>
<p>Tag deletion via the `DELETE /v2/&lt;name&gt;/manifests/&lt;tag&gt;` 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.</p>
<p>### Details</p>
<p>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](https://github.com/distribution/distribution/blob/main/registry/storage/linkedblobstore.go#L213-L215).</p>
<p>However, tag deletion takes a separate code path that never checks this setting:</p>
<p>In [`registry/handlers/manifests.go:439-453`](https://github.com/distribution/distribution/blob/main/registry/handlers/manifests.go#L439-L453), `DeleteManifest`  detects a tag reference, calls `tagService.Untag()`, returns,  never consulting `registry.deleteEnabled`.</p>
<p>In turn, [`tagStore.Untag()`](https://github.com/distribution/distribution/blob/main/registry/storage/tagstore.go#L111-L121) calls the storage driver directly to delete the tag path without checking whether deletes are enabled.</p>
<p>### PoC</p>
<p>Using a paired down Distribution configuration that explicitly disables deletes, such as this one, stored as `config.yaml`:</p>
<p>```yaml
version: 0.1
storage:
  delete:
    enabled: false
  filesystem:
    rootdirectory: /var/lib/registry
http:
  addr: :5000
```</p>
<p>Start a local Distribution, mounting in the above configuration from the current directory:</p>
<p>```shell
docker…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-6pjf-3r9x-m592"/>
  </entry>
</feed>
