{"id":"CVE-2026-46354","state":"PUBLISHED","title":"Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft","description":"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\":\"<target>\"}` 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`.","publishedAt":"2026-07-07T21:10:01.899Z","updatedAt":"2026-07-08T13:01:25.192Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["coder coder"],"affected":[{"vendor":"coder","product":"coder","versions":[{"version":">= 2.33.0-rc.0, < 2.33.3","status":"affected"},{"version":">= 2.32.0-rc.0, < 2.32.2","status":"affected"},{"version":">= 2.31.0, < 2.31.12","status":"affected"},{"version":">= 2.30.0, < 2.30.8","status":"affected"},{"version":">= 2.29.0, < 2.29.13","status":"affected"},{"version":"< 2.24.5","status":"affected"}]}],"references":["https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf","https://github.com/coder/coder/pull/25286","https://github.com/coder/coder/releases/tag/v2.24.5","https://github.com/coder/coder/releases/tag/v2.29.13","https://github.com/coder/coder/releases/tag/v2.30.8","https://github.com/coder/coder/releases/tag/v2.31.12","https://github.com/coder/coder/releases/tag/v2.32.2","https://github.com/coder/coder/releases/tag/v2.33.3"],"weaknesses":["CWE-347"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46354.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46354","state":"PUBLISHED","datePublished":"2026-07-07T21:10:01.899Z","dateUpdated":"2026-07-08T13:01:25.192Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-13T18:37:30.991Z"},"containers":{"cna":{"title":"Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft","descriptions":[{"lang":"en","value":"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\":\"<target>\"}` 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`."}],"affected":[{"vendor":"coder","product":"coder","versions":[{"version":">= 2.33.0-rc.0, < 2.33.3","status":"affected"},{"version":">= 2.32.0-rc.0, < 2.32.2","status":"affected"},{"version":">= 2.31.0, < 2.31.12","status":"affected"},{"version":">= 2.30.0, < 2.30.8","status":"affected"},{"version":">= 2.29.0, < 2.29.13","status":"affected"},{"version":"< 2.24.5","status":"affected"}]}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf","name":"https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/coder/pull/25286","name":"https://github.com/coder/coder/pull/25286","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.24.5","name":"https://github.com/coder/coder/releases/tag/v2.24.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.29.13","name":"https://github.com/coder/coder/releases/tag/v2.29.13","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.30.8","name":"https://github.com/coder/coder/releases/tag/v2.30.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.31.12","name":"https://github.com/coder/coder/releases/tag/v2.31.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.32.2","name":"https://github.com/coder/coder/releases/tag/v2.32.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.33.3","name":"https://github.com/coder/coder/releases/tag/v2.33.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-347","lang":"en","description":"CWE-347: Improper Verification of Cryptographic Signature","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-07T21:10:01.899Z"},"source":{"advisory":"GHSA-6x44-w3xg-hqqf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-08T13:01:18.394796Z","id":"CVE-2026-46354","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-08T13:01:25.192Z"}}]}}}