# CVE-2026-46354: Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-05-19T20:04:13.000Z
- Modified: 2026-07-08T19:47:02.427Z
- Also known as: GHSA-6x44-w3xg-hqqf, GO-2026-5196
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- coder coder: >= 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; before 2.24.5; from 2.29.0 before 2.29.13; from 2.30.0 before 2.30.8; from 2.31.0 before 2.31.12; from 2.32.0 before 2.32.2; from 2.33.0 before 2.33.3
- github.com/coder/coder/v2 (Go): from 2.33.0-rc.0 before 2.33.3; from 2.32.0-rc.0 before 2.32.2; from 2.31.0 before 2.31.12; from 2.30.0 before 2.30.8; from 2.29.0 before 2.29.13; before 2.24.5
- github.com/coder/coder (Go): up to 0.27.3; all versions

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-6x44-w3xg-hqqf> (advisory, patch, vendor-advisory, web)
- <https://github.com/coder/coder/pull/25286> (fix, issue-tracking, patch, web)
- <https://github.com/coder/coder/releases/tag/v2.24.5> (release-notes, web)
- <https://github.com/coder/coder/releases/tag/v2.29.13> (release-notes, web)
- <https://github.com/coder/coder/releases/tag/v2.30.8> (release-notes, web)
- <https://github.com/coder/coder/releases/tag/v2.31.12> (release-notes, web)
- <https://github.com/coder/coder/releases/tag/v2.32.2> (release-notes, web)
- <https://github.com/coder/coder/releases/tag/v2.33.3> (release-notes, web)
- <https://github.com/coder/coder> (package)

## Sources

- CVE List: [CVE-2026-46354](https://www.cve.org/CVERecord?id=CVE-2026-46354), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-6x44-w3xg-hqqf](https://github.com/advisories/GHSA-6x44-w3xg-hqqf), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5196](https://pkg.go.dev/vuln/GO-2026-5196), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-46354](https://nvd.nist.gov/vuln/detail/CVE-2026-46354), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-46354 · Whole record: https://cve.day/CVE-2026-46354.json · Rebuilt by cve.day 2026-11-25T22:59:27.321Z
