All vulnerabilities

Go

CVE-2026-137547

Coder from 2.39.0 before 2.39.1 Database Password Exposure via API Errors

Severity
Critical 9.2
Published
26 Nov 2026
Last changed
26 Nov 2026
Added to UpHeron
26 Nov 2026
Fixed in
2.29.27, 2.34.19, 2.37.0, 2.37.11, 2.38.7, 2.39.1
Weakness
Information exposure through error messages (CWE-209)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
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
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
github.com/coder/coder/v2Go · osv:Go:github.com/coder/coder/v2
  • Every version before 2.29.27
  • From 2.30.0 before 2.34.19
  • From 2.35.0 before 2.37.0
  • From 2.37.0 before 2.37.11
  • From 2.38.0 before 2.38.7
  • From 2.39.0 before 2.39.1

About github.com/coder/coder/v2

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137547