{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.0.0-beta.471"
              },
              {
                "fixed": "4.0.0-beta.474"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "914d7e0b50505bc1fd56c34974fca09ad354e92a"
            },
            {
              "fixed": "37518813a60596190b08f3df562e82cd77182a98"
            }
          ],
          "repo": "https://github.com/coollabsio/coolify",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-chg4-63hm-xv9x"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42204.json"
  },
  "details": "Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. From 4.0.0-beta.471 through 4.0.0-beta.473, a regression in SHELL_SAFE_COMMAND_PATTERN allowed ampersands in custom Docker Compose build, start, and pre/post-deployment command fields, allowing an authenticated team member to inject shell commands that execute on the host. This issue is fixed in version 4.0.0-beta.474.",
  "id": "CVE-2026-42204",
  "modified": "2026-08-12T03:51:33.848049269Z",
  "published": "2026-07-06T21:17:16.800Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42204.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coollabsio/coolify/security/advisories/GHSA-chg4-63hm-xv9x"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42204"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coollabsio/coolify/commit/e1aac50b745cf499e710b7e35cd2a9d6a1538dd9"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coollabsio/coolify/pull/9684"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Coolify: Authenticated RCE via SHELL_SAFE_COMMAND_PATTERN regression → host root"
}