{
  "id": "CVE-2026-15789",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-15789",
  "published_at": "2026-07-21T16:10:20.421Z",
  "title": "Malicious client can bypass destination directory validation on local sources upload",
  "vendor": "moby",
  "product": "BuildKit",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A custom client can produce such an upload request to the BuildKit daemon that files can escape from the BuildKit-controlled state directory. The client needs to have valid permissions to access the BuildKit control API to issue builds, e.g., bypass authentication, etc.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "moby",
        "product": "BuildKit",
        "ranges": [
          "\u003c 0.31.2"
        ],
        "fixed_in": [
          "0.31.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade BuildKit to 0.31.2 or later."
    ],
    "workarounds": [
      "Only use proper BuildKit clients (Docker Buildx, Buildctl) to issue builds. The issue only affects scenarios where you are running a BuildKit service with untrusted parties issuing builds."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
