CVE-2026-137547: Coder from 2.39.0 before 2.39.1 Database Password Exposure via API Errors
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Coder deployments running versions before 2.29.27, versions 2.30.0 through before 2.34.19, versions 2.35.0 through before 2.37.11, versions 2.38.0 through before 2.38.7, or version 2.39.0 before 2.39.1 are affected when database connection failures occur.
What does an attacker need to exploit this issue?
An attacker does not need authentication or user interaction. They need to send a well-formed but invalid API key while the deployment is experiencing a database connection failure.
How long can the exposed credential be used?
The temporary AWS IAM database password can provide PostgreSQL database access for 15 minutes.