{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c8779d9e87d9ca000fcaf82732071787a345a377"
            },
            {
              "fixed": "ace12e2a12d0e104f6fb0aecf162b29e8c67b8a9"
            }
          ],
          "repo": "https://github.com/project-zot/zot",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-85jx-fm8m-x8c6"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31801.json"
  },
  "details": "zot is ancontainer image/artifact registry based on the Open Container Initiative Distribution Specification. From 1.3.0 to 2.1.14, zot’s dist-spec authorization middleware infers the required action for PUT /v2/{name}/manifests/{reference} as create by default, and only switches to update when the tag already exists and reference != \"latest\". As a result, when latest already exists, a user who is allowed to create (but not allowed to update) can still pass the authorization check for an overwrite attempt of latest. This vulnerability is fixed in 2.1.15.",
  "id": "CVE-2026-31801",
  "modified": "2026-04-01T23:09:24.961534280Z",
  "published": "2026-03-10T20:54:15.164Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31801.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/project-zot/zot/security/advisories/GHSA-85jx-fm8m-x8c6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31801"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "zot create-only policy allows overwrite attempts of existing latest tag (update permission not required)"
}