{"id":"CVE-2026-46354","published":"2026-07-07T21:10:01Z","modified":"2026-07-08T13:01:25Z","title":"Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft","vendor":"coder","product":"coder","tier":"tail","description":{"text":"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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00318,"percentile":0.17178,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/coder/pull/25286","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":3.44},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"coder","affectedVersions":[{"vendor":"coder","product":"coder","versions":[">= 2.33.0-rc.0, < 2.33.3",">= 2.32.0-rc.0, < 2.32.2",">= 2.31.0, < 2.31.12",">= 2.30.0, < 2.30.8",">= 2.29.0, < 2.29.13","< 2.24.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-08T13:01:18.394796Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/coder/coder/v2","vulnerableRanges":[">=2.33.0-rc.0, <2.33.3",">=2.32.0-rc.0, <2.32.2",">=2.31.0, <2.31.12",">=2.30.0, <2.30.8",">=2.29.0, <2.29.13","<2.24.5"],"patched":["2.33.3","2.32.2","2.31.12","2.30.8","2.29.13","2.24.5"],"from":["GHSA-6x44-w3xg-hqqf","GO-2026-5196"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/coder/coder","vulnerableRanges":["<=0.27.3","all versions"],"patched":[],"from":["GHSA-6x44-w3xg-hqqf","GO-2026-5196"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-42111","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-58437","published":"2025-09-06","fixed":"2.25.2","kev":false,"link":{"from":"CVE-2025-58437","to":"CVE-2026-46354","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/coder/coder/v2","fromFixed":"2.24.4","toFixed":"2.24.5","daysApart":304}]}},{"cve":"CVE-2025-66411","published":"2025-12-03","fixed":"2.28.4","kev":false},{"cve":"CVE-2026-44454","published":"2026-07-07","fixed":"2.30.2","kev":false,"link":{"from":"CVE-2026-44454","to":"CVE-2026-46354","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/coder/coder/v2","fromFixed":"2.30.2","toFixed":"2.30.8","daysApart":0}]}},{"cve":"CVE-2026-45796","published":"2026-07-07","fixed":"2.33.3","kev":false},{"cve":"CVE-2026-46354","published":"2026-07-07","fixed":"2.33.3","kev":false},{"cve":"CVE-2026-111932","published":"2026-10-17","fixed":"2.34.2","kev":false},{"cve":"CVE-2026-111933","published":"2026-10-17","fixed":"2.34.2","kev":false},{"cve":"CVE-2026-55075","published":"2026-07-07","fixed":"2.34.2","kev":false}],"package":"Go:github.com/coder/coder/v2"}}