Skip to main content

Coder CVE-2026-45796

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-19 https://github.com/coder/coder GHSA-686c-7vgv-v3fx
6.5
CVSS 3.1 · Vendor: https://github.com/coder/coder
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send unauthenticated POST to /api/v2/workspaceagents/azure-instance-identity
  2. Delivery
    Submit crafted PKCS#7 with *.metadata.azure.com CN
  3. Exploit
    Server fetches attacker-controlled IssuingCertificateURL target
  4. Execution
    Parse Go HTTP error from JSON Detail field
  5. Persist
    Infer host reachability and port state
  6. Impact
    Map internal network topology

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No authentication is required - the CVSS vector PR:N confirms this endpoint is fully unauthenticated, and the description confirms no session, token, or workspace agent credential is checked before processing the PKCS#7 payload. No special server-side configuration is needed: the vulnerable endpoint is present and accessible regardless of whether the Azure identity feature is enabled or any Azure infrastructure is connected. The only prerequisite is network access to the Coder server's API port. Exploitation is limited to semi-blind SSRF - the attacker cannot read HTTP response bodies from internal targets, only infer host/port reachability and open state from error message differentiation ('connection refused' vs 'i/o timeout' vs DNS failure vs certificate-parse error). The memory exhaustion vector (unbounded io.ReadAll) requires the attacker to control a responding server that streams a large payload, which is an additional but low-bar prerequisite.

Impact

The CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) accurately reflects the unauthenticated, low-complexity, network-accessible nature of this vulnerability. The PR:N vector is confirmed by the description - the endpoint requires no credentials. The C:L/I:L scoring is appropriate: the attacker cannot read response bodies (limiting confidentiality impact), but can trigger outbound requests with potential side effects (integrity) and exfiltrate error-derived network topology data (partial confidentiality). Notably, the A:N score does not capture the unbounded io.ReadAll memory exhaustion vector described in the advisory - this is a discrepancy worth flagging; defenders should treat denial-of-service against the Coder server as a realistic secondary risk. No EPSS score was provided in the source data. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified, which tempers urgency for organizations without internet-exposed Coder instances. However, any Coder deployment accessible from untrusted networks with the /api/v2/workspaceagents/azure-instance-identity endpoint reachable is at immediate risk - no Azure subscription, workspace agent, or feature configuration is required on the victim's side.

Exploit ScenarioDerived

An attacker with network access to a Coder server crafts a self-signed X.509 certificate whose Common Name matches the pattern *.metadata.azure.com (satisfying the server's allowedSigners regex) and whose IssuingCertificateURL AIA extension points to an internal target such as http://169.254.169.254/latest/meta-data/ or an internal Kubernetes API server. The attacker wraps this certificate in a PKCS#7 structure and submits it to POST /api/v2/workspaceagents/azure-instance-identity without any credentials. The Coder server fetches the attacker-specified URL and returns a wrapped Go HTTP error in the JSON Detail field - revealing whether the target host is reachable, what port state is present, and DNS resolution outcomes - enabling systematic internal network mapping. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Unauthenticated semi-blind Server-Side Request Forgery in Coder's Azure instance identity endpoint allows any remote attacker to force the Coder server to issue HTTP GET requests to arbitrary internal or external hosts, enabling internal network reconnaissance, cloud metadata service probing (e.g., 169.254.169.254), and error-based information disclosure of network topology. The vulnerability exists across all supported Coder release lines prior to v2.29.13/v2.30.8/v2.31.12/v2.32.2/v2.33.3/v2.24.5 (ESR), and has been patched in GitHub PR #25274. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade Coder to a patched release immediately: v2.33.3, v2.32.2, v2.31.12, v2.30.8, v2.29.13, or v2.24.5 (ESR), per https://github.com/coder/coder/releases. The fix (PR #25274, commit 57b11d405) introduces an explicit host allowlist restricting IssuingCertificateURL fetches to www.microsoft.com and cacerts.digicert.com only, replaces http.DefaultClient with a custom HTTP client that enforces a 5-second timeout, blocks all private/link-local/loopback IP ranges (including RFC 1918, 169.254.0.0/16, 100.64.0.0/10, and others) with anti-DNS-rebinding protections, caps response body reads at 1 MiB, and strips internal error details from the API response. If upgrading immediately is not possible, the primary workaround is to block access to the endpoint POST /api/v2/workspaceagents/azure-instance-identity via ingress firewall rules or reverse proxy ACLs - this is safe if Azure instance identity authentication is not in use, with the trade-off of breaking Azure VM workspace agent registration for any deployments that do rely on it. The advisory is published at https://github.com/coder/coder/security/advisories/GHSA-686c-7vgv-v3fx.

Affected Packages

go github.com/coder/coder no fix
go github.com/coder/coder/v2 fix: 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, 2.33.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in Coder's Go-based server (pkg:go/github.com_coder_coder_v2), specifically in the azureidentity.Validate() function (coderd/azureidentity/azureidentity.go). The affected endpoint POST /api/v2/workspaceagents/azure-instance-identity processes PKCS#7 signatures as part of Azure VM identity attestation. During certificate chain verification, the code iterates over the signer certificate's X.509 IssuingCertificateURL extension - a standard AIA (Authority Information Access) field - and fetches each URL using Go's http.DefaultClient. This client follows HTTP redirects, resolves to private and link-local IP ranges (including RFC 1918, 169.254.0.0/16, and loopback), imposes no timeout, and reads the response body with unbounded io.ReadAll. The allowedSigners regex only validated that the certificate Common Name matched *.metadata.azure.com, not the AIA URLs, creating the bypass path. CWE-918 (Server-Side Request Forgery) is the root cause class, compounded by CWE-200 (Information Exposure) via verbatim err.Error() output in the JSON Detail field.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/coder/coder) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/coder/coder).

CVSS VectorVendor: https://github.com/coder/coder

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

Unauthenticated semi-blind Server-Side Request Forgery (SSRF) via the Azure instance identity endpoint (POST /api/v2/workspaceagents/azure-instance-identity). An external attacker can force the Coder server to issue HTTP GET requests to arbitrary internal or external hosts by submitting a crafted PKCS#7 signature. The server does not return the target's response body, but error messages in the API response reveal whether the target is reachable and what type of failure occurred.

Details

The POST /api/v2/workspaceagents/azure-instance-identity endpoint accepts a PKCS#7 signature without authentication. During certificate chain verification, azureidentity.Validate() iterates over the signer certificate's IssuingCertificateURL extension and fetches each URL using http.DefaultClient with no host restriction, no private-IP blocking, and no response-size limit.

An attacker crafts a self-signed certificate whose Common Name matches *.metadata.azure.com (passing the allowedSigners regex) and whose IssuingCertificateURL points to an attacker-chosen target. The server fetches that URL and feeds the response body into x509.ParseCertificate. The parsed result is discarded, but the wrapped error string is returned verbatim in the JSON response via Detail: err.Error(). Connection-level errors ("connection refused", "i/o timeout", DNS failures) and certificate-parse errors give the attacker enough signal to infer host reachability and port state without seeing the actual response content.

Root causes:

  1. No allowlist on IssuingCertificateURL hosts. Any URL was accepted.
  2. http.DefaultClient was used. It follows redirects and connects to private, link-local, and loopback addresses.
  3. Unbounded io.ReadAll on the response body (memory exhaustion vector).
  4. Raw err.Error() was returned in the JSON response, leaking internal HTTP client errors to the caller.

Impact

This is a semi-blind SSRF: the server makes the outbound request but the HTTP response body is consumed by x509.ParseCertificate and never returned to the attacker.

  • Internal network reconnaissance. The attacker can map internal hosts and ports by observing error differentiation in the API response: "connection refused" (port closed), "i/o timeout" (host unreachable or firewalled), DNS failure (host does not exist), or certificate-parse error (port open and responding). This enables systematic scanning of the internal network from the Coder server's vantage point.
  • Requests to sensitive endpoints. The server can be directed to hit cloud metadata services (e.g. http://169.254.169.254/), internal admin interfaces, or other services. The attacker cannot read the response content, but the request itself may have side effects depending on the target.
  • Error-based information disclosure. Wrapped Go HTTP client errors in the Detail field expose internal hostnames, IP addresses, port numbers, and network topology details.
  • Memory exhaustion. The unbounded io.ReadAll on the response body allows an attacker to point IssuingCertificateURL at a large resource, forcing the server to buffer it entirely in memory.

Patches

Fixed in #25274 (commit 57b11d405):

The fix was backported to all supported release lines:

Release linePatched version
2.33v2.33.3
2.32v2.32.2
2.31v2.31.12
2.30v2.30.8
2.29v2.29.13
2.24 (ESR)v2.24.5

Workarounds

If the Azure identity-auth mechanism is not being used then restrict access to the corresponding endpoint (/api/v2/workspaceagents/azure-instance-identity) using ingress firewall and/or proxy ACLs.

Recognition

We'd like to thank Ben Tran of calif.io and Anthropic's Security Team (ANT-2026-22447) for independently disclosing this issue!

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder_v2
pkg:go/github.com_coder_coder

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy