Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Coder API unauthenticated
-
DeliverySend well-formed but invalid API key
-
ExploitTrigger DB lookup during connection failure
-
ExecutionRead temporary password from error detail
-
PersistConnect to PostgreSQL with leaked credentials
-
ImpactAlter accounts/roles for persistent access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK
1 technique across 1 tactic: Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the Coder deployment to be configured with AWS IAM database authentication (CODER_PG_AUTH=awsiamrds); deployments without this setting are explicitly not affected. The password is only exposed while Coder is failing to open new database connections - i.e. during a database outage or failover - so an attacker must act within that window and within the 15-minute validity of the leaked IAM token. The initial credential disclosure is unauthenticated (PR:N) via a correctly-formatted but invalid API key reaching the Coder API. To escalate beyond credential disclosure to reading/altering data, the attacker additionally needs network reachability to the PostgreSQL instance; restricting database network access and limiting the Coder DB user's permissions reduce but do not eliminate impact. The vendor states upgrading to a fixed version is the only complete fix. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated one, but its real-world exploitability is gated by specific conditions. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) scores 9.2 and the vuln.today decision label is act_now, driven by unauthenticated network reach (PR:N) and high vulnerable-system confidentiality/integrity/availability impact (VC:H/VI:H/VA:H) once the leaked PostgreSQL credentials are used. The AC:H and AT:P metrics reflect a real constraint confirmed by the GHSA advisory: the password only appears in API errors while Coder is failing to open new database connections (e.g. during a database outage or failover), a window the attacker does not control. No EPSS score and no KEV status were provided; exploitation status is therefore 'no public exploit identified at time of analysis' (the only exploit-adjacent references are the vendor fix PR and the VulnCheck advisory, neither of which is working exploit code). The signals are consistent rather than conflicting: high impact and unauthenticated access justify urgency, while AC:H/AT:P and the awsiamrds-only precondition mean exploitation is opportunistic and timing-dependent rather than continuously available. Absence of EPSS/KEV data means widespread active exploitation is neither confirmed nor refuted. |
| Exploit ScenarioDerived | While a Coder deployment that uses AWS IAM database authentication (CODER_PG_AUTH=awsiamrds) is experiencing a database connection failure, an unauthenticated attacker sends a correctly-formatted but invalid API key to the Coder API, triggering a database lookup whose error detail leaks the connection URL containing a 15-minute IAM database password plus host, port and username. If the attacker can also reach the PostgreSQL instance over the network, they use the credential to read, modify or delete Coder data - including granting themselves roles that persist after the password expires. No public working exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Coder deployments configured with AWS IAM database authentication (CODER_PG_AUTH=awsiamrds) can leak a short-lived PostgreSQL credential through API error responses, allowing unauthenticated remote attackers to obtain the database password, host, port and username by sending a well-formed but invalid API key while the server is failing to open database connections. The exposed password is an IAM authentication token valid for 15 minutes, and an attacker who can also reach the PostgreSQL instance could read, alter or delete Coder data - including granting themselves access that persists beyond the token lifetime. The leak only occurs during a database outage or failover, and exploitation additionally requires network reachability to the database; no public exploit code or confirmed active exploitation was identified at time of analysis, but the seniority of the decision label (act_now) and the credential-disclosure-to-database-takeover path justify prompt patching. Deployments not using AWS IAM database authentication are explicitly not affected.
RemediationAI
Vendor-released patches exist for every supported line: upgrade to v2.39.1 (mainline), v2.38.7 (stable), v2.37.11 (security support), v2.34.19 (ESR) or v2.29.27 (ESR) per https://github.com/coder/coder/security/advisories/GHSA-w4m3-qhx8-c649; the vendor states upgrading is the only complete fix, and note the patch also removes internal error details from API key middleware responses, so API clients relying on raw database error text in the detail field may see changed behaviour. Because the leaked IAM token was also written to server logs and CLI output on every connection retry, treat existing Coder logs as containing credentials and restrict access to them accordingly. The documented workarounds limit blast radius but do not stop the password from appearing in errors: restrict network access to the PostgreSQL instance so only Coder hosts can connect, and reduce the Coder database user's privileges to the minimum the application requires - both narrow what a leaked token can reach, at the cost of tighter firewall/security-group management and possible application breakage if the role is trimmed too aggressively. Rotating the database credentials does not help beyond the token's 15-minute lifetime but should be considered if logs were broadly accessible during an outage window.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-209 (generation of error message containing sensitive information), with the advisory also classifying it as CWE-532 (insertion of sensitive information into log files). In the Go codebase (go/github.com/coder/coder/v2), when CODER_PG_AUTH=awsiamrds is set, Coder mints a fresh AWS IAM RDS authentication token for every new database connection and embeds it in the PostgreSQL connection URL as the password field. When the driver failed to open a connection, its error string carried the entire connection URL - including that token - and the API key middleware surfaced the raw database error in the detail field of its JSON response. Because a correctly formatted but invalid API key still triggers a database lookup, any unauthenticated party able to reach the Coder API could elicit the error; the same URL was also written to server logs and CLI output on each connection retry, widening exposure to anyone with log access. The token's 15-minute validity is the exploitation window. The fix strips the connection URL from the driver error and stops the API key middleware from returning internal error details. Note that the advisory's package metadata lists a >= 2.35.0, < 2.37.0 range as 'not yet patched' even though 2.37.11 is published as the fix for the security-support line, so operators on 2.35.x/2.36.x should verify against the GitHub advisory rather than assume a gap.
Know when Coder gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Unauthenticated network leak (PR:N) but only during an attacker-uncontrolled database-failure window (AC:H); leaked DB credentials permit read, modify and delete, so C:H/I:H/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Coder before 2.29.27, 2.30.0 before 2.34.19, 2.35.0 before 2.37.11, 2.38.0 before 2.38.7, and 2.39.0 before 2.39.1 returns database connection errors containing a temporary AWS IAM database password in API key middleware responses. During database connection failures, unauthenticated attackers can send a well-formed but invalid API key to obtain the password and access the PostgreSQL database for 15 minutes.
Articles & Coverage 1
Technical POC Analysis
The vulnerable behavior is CWE-209: generation of an error message containing sensitive information.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Coder deployments using AWS IAM database authentication face a critical vulnerability that can expose temporary database credentials through API error responses, potentially enabling unauthorized access to sensitive Coder data. Although exploitation requires a database outage and network access to the database, the credential disclosure could lead to data breaches and persistent unauthorized access, affecting all users relying on the affected Coder platform.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting network access to the PostgreSQL database, monitoring API error responses, and considering temporary changes to database authentication configuration.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Coder allows organizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.1), t
Coder allows organizations to provision remote development environments via Terraform. Prior to 2.26.5, 2.27.7, and 2.28
code-server is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerabili
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes.
Credential disclosure in Coder's web dashboard (CVSS 4.0 base 8.7, High) lets an authenticated low-privileged attacker w
Credential theft in Coder (before 2.29.20, 2.33.0 through 2.33.11, 2.34.0 through 2.34.7, and 2.35.0 through 2.35.3) let
Improper authorization in Coder's external agent credentials endpoint lets authenticated users who hold only workspace r
Session-token leakage in Coder's `coder open app` CLI command lets a malicious template author steal the credentials of
Authenticated Coder users who control a modified workspace agent can redirect the control plane's workspace-agent API re
Coder deployments that run workspace agents on Google Compute Engine with GCP instance-identity authentication accept re
Coder allows oragnizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.2), t
Arbitrary shell command execution and security-setting tampering in the Coder VS Code extension (coder.coder-remote) ver
EUVD-2026-136767
NVD
CVE.org
EPSS
GitHub
Exploit-DB