{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:coder:coder:*:*:*:*:*:go:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.24.5"
              },
              {
                "introduced": "2.29.0"
              },
              {
                "fixed": "2.29.13"
              },
              {
                "introduced": "2.30.0"
              },
              {
                "fixed": "2.30.8"
              },
              {
                "introduced": "2.31.0"
              },
              {
                "fixed": "2.31.12"
              },
              {
                "introduced": "2.32.0"
              },
              {
                "fixed": "2.32.2"
              },
              {
                "introduced": "2.33.0"
              },
              {
                "fixed": "2.33.3"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "cc4907395be7cfd58f3cb19fe1b97f38730bfeec"
            },
            {
              "introduced": "ba71b321bceab3faa128d306e8de3612a673d6c1"
            },
            {
              "fixed": "25ddc1cb787ae88af6040590f676b3d31a63e225"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "fixed": "74eba1e8a9f98fddd782b9123241b53510f3c8c9"
            },
            {
              "introduced": "fa050ee0abc24ddf1bf91fb26148a9c3b2bd1481"
            },
            {
              "fixed": "dfe986b2b051a962e8035b0941f5adf312b3926c"
            },
            {
              "introduced": "34584e909bbe6f501fb2cbdc994325b4d3f9e2ef"
            },
            {
              "fixed": "5f343bc337b413aeee8ef2d47004ef97196607c1"
            },
            {
              "introduced": "f009c17217e6bad9a61ba511d23735bc1ce94da0"
            },
            {
              "fixed": "2b778f292c2ddf8ac261683d0d5d8a18da1512f6"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6x44-w3xg-hqqf"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-347"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46354.json"
  },
  "details": "Coder allows organizations to provision remote development environments via Terraform. In versions prior tp 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3, `azureidentity.Validate()` verifies that the PKCS#7 signer certificate chains to a trusted Azure CA but never verifies the PKCS#7 signature itself. An attacker can embed a legitimate Azure certificate alongside arbitrary content e.g. `{\"vmId\":\"\u003ctarget\u003e\"}` and the forged `vmId` will be accepted returning the victim workspace agent's session token. No authentication is required. The attacker only needs to know a target VM's `vmId` which is a `UUIDv4`. That's a practical limitation which would typically require prior access to be exploited. Versions 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 patch the issue. As a workaround, reconfigure any Azure templates to use token authentication rather than `azure-instance-identity`.",
  "id": "CVE-2026-46354",
  "modified": "2026-07-15T01:49:08.323227514Z",
  "published": "2026-07-07T21:10:01.899Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.24.5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.29.13"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.30.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.31.12"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.32.2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.33.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46354.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46354"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coder/coder/pull/25286"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft"
}