{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.34.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.34.1"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f5b59a1f2fb25a0cb7072c398cab9aed7835da4e"
            }
          ],
          "repo": "https://github.com/moby/buildkit",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w26x-xg27-7qjc"
  ],
  "database_specific": {
    "cna_assigner": "Docker",
    "cwe_ids": [
      "CWE-61"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121520.json"
  },
  "details": "In BuildKit versions prior to v0.34.1, a malicious client with access to the BuildKit control APIs can submit a build request that sets an extended attribute on a file outside the BuildKit state directory. Extended attributes in the trusted. or security. namespaces may also be set, potentially giving a program on the host elevated privileges. This issue affects build services that accept build requests from untrusted users. The issue is fixed in v0.34.1.",
  "id": "CVE-2026-121520",
  "modified": "2026-11-08T02:30:16.739467709Z",
  "published": "2026-11-03T22:11:57.202Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121520.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/moby/buildkit/security/advisories/GHSA-w26x-xg27-7qjc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-121520"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/moby/buildkit"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:H",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Malicious client could set xattr value outside of BuildKit state directory"
}