{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.39.0"
                  },
                  {
                    "fixed": "2.39.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.38.0"
                  },
                  {
                    "fixed": "2.38.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.37.0"
                  },
                  {
                    "fixed": "2.37.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.30.0"
                  },
                  {
                    "fixed": "2.34.19"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "2.29.27"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.35.0"
                  },
                  {
                    "fixed": "2.37.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "8d897357dd61b3c564463356fdba40c64658e6e7"
            },
            {
              "fixed": "6e6ab2259ed4ecf42d69b24b5776317bb9ada3b9"
            },
            {
              "introduced": "c3c6a672821e8ac2472c45f3be7a3c600aa8dae1"
            },
            {
              "fixed": "2a7bf826071c845d07079fad601c08a7b942efb0"
            },
            {
              "introduced": "8a148a9a57eef8dc19db13d1423adcdaadd319d4"
            },
            {
              "fixed": "c25f50f21072c8f20db82068a5908e0c8654d190"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "fixed": "c7c0ece891aead70a2530763b716dcb72d06ea26"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "8585c292fec32963383c073e564644643ec03d8f"
            },
            {
              "introduced": "a82f2350165c701ce3cbb6260f849e26f4264f79"
            },
            {
              "fixed": "8a148a9a57eef8dc19db13d1423adcdaadd319d4"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w4m3-qhx8-c649"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-209"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137547.json"
  },
  "details": "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.",
  "id": "CVE-2026-137547",
  "modified": "2026-11-26T17:45:39.570883304Z",
  "published": "2026-11-26T16:00:16.045Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137547.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-w4m3-qhx8-c649"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137547"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/coder-from-2.39.0-before-2.39.1-database-password-exposure-via-api-errors"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Coder from 2.39.0 before 2.39.1 Database Password Exposure via API Errors"
}