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`.
Published: 2026-07-07
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Coder allows organizations to provision remote development environments via Terraform. In versions prior to 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3, the azureidentity.Validate() function checks that the PKCS#7 signer certificate chains to a trusted Azure CA, but it never verifies the PKCS#7 signature itself. An attacker can embed a legitimate Azure certificate together with arbitrary data, such as a forged "vmId":"<target>", and the forged vmId will be accepted, causing the victim's workspace agent session token to be returned. No authentication is required; the attacker only needs to know the target VM's vmId, which is a UUIDv4, a limitation that typically means prior access is needed.

Affected Systems

All Coder releases prior to the patched versions 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 are affected. The vulnerability specifically impacts the Azure instance identity feature used during Terraform provisioning; any environment that relies on this integration while running an affected Coder version is at risk.

Risk and Exploitability

The CVSS score of 9.1 highlights the high severity of unauthenticated token theft with remote impact. Because the vulnerability does not require user interaction or authentication, an attacker who knows a legitimate VM UUIDv4 can craft a malicious PKCS#7 payload from any network location. The EPSS score of < 1% indicates that, despite the high impact, the current probability of exploitation remains low, possibly requiring the attacker to already have some level of access or to discover a valid UUIDv4. The flaw is not listed in the CISA KEV catalog. Administrators should treat it as a critical risk until the affected releases are updated.

Generated by OpenCVE AI on July 26, 2026 at 18:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Coder patch by upgrading to version 2.24.5 or later, which corrects the azureidentity.Validate() implementation.
  • If an immediate upgrade is not possible, modify all Azure Terraform templates to use token authentication instead of the azure-instance-identity flow, which bypasses the vulnerable validation logic.
  • Reduce exposure of VM identifiers through network segmentation, access controls, and by limiting the number of reachable VM instances, thereby narrowing the attack surface.

Generated by OpenCVE AI on July 26, 2026 at 18:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6x44-w3xg-hqqf Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft
History

Wed, 08 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 07 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder

Tue, 07 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
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`.
Title Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft
Weaknesses CWE-347
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-08T13:01:25.192Z

Reserved: 2026-05-13T18:37:30.991Z

Link: CVE-2026-46354

cve-icon Vulnrichment

Updated: 2026-07-08T13:01:22.364Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T19:00:02Z

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature