{
  "id": "CVE-2026-55429",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-55429",
  "published_at": "2026-07-08T00:00:33.785Z",
  "title": "Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID",
  "vendor": "coder",
  "product": "coder",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/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": "Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `UpsertWorkspaceApp` overwrites an existing app's `agent_id` on a primary-key conflict and `insertAgentApp` accepts the app ID from the provisioner's `CompleteJob` payload without verifying it belongs to the workspace being built. `CompleteJob` runs under `dbauthz.AsProvisionerd` so the authorization layer does not block the cross-workspace upsert. Exploitation requires elevated access as a template author or external provisioner operator. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 verifies that any existing `workspace_apps` row matching the supplied ID belongs to the workspace being built and rejects cross-workspace agent reassignment. No known workarounds are available.",
  "cwe": "CWE-639",
  "cpes": [
    "cpe:2.3:a:coder:coder:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "coder",
        "product": "coder",
        "ranges": [
          "\u003e= 2.34.0, \u003c 2.34.2",
          "\u003e= 2.33.0, \u003c 2.33.8",
          "\u003e= 2.30.0, \u003c 2.32.7",
          "\u003c 2.29.17"
        ],
        "fixed_in": [
          "2.34.2",
          "2.33.8",
          "2.32.7",
          "2.29.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade coder to 2.34.2 or 2.33.8 or 2.32.7 or 2.29.17 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/coder/coder/security/advisories/GHSA-9rjw-3gwp-f59v"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/coder/coder/pull/26103"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.29.17"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.32.7"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.33.8"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/coder/coder/releases/tag/v2.34.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
