Skip to content
Heist/ feed
Back to feed
Critical

dbt has a Command Injection in Reusable Workflow via Unsanitized comment-body Output

Type: advisorySources: OSV

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. Inside the reusable workflow dbt-labs/actions/blob/main/.github/workflows/open-issue-in-repo.yml, the prep job uses peter-evans/find-comment to search for an existing comment indicating that a docs issue has already been opened. The output steps.issue_comment.outputs.comment-body is then interpolated directly into a bash if statement. Because comment-body is attacker-controlled text and is inserted into shell syntax without escaping, a malicious comment body can break out of the quoted string and inject arbitrary shell commands. This vulnerability is fixed with commit bbed8d28354e9c644c5a7df13946a3a0451f9ab9.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-39382
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:09 UTC · Revision 1

Source evidence

dbt has a Command Injection in Reusable Workflow via Unsanitized comment-body Output

core-osv · Original source

Published 7 Apr 2026, 19:56 UTC

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. Inside the reusable workflow dbt-labs/actions/blob/main/.github/workflows/open-issue-in-repo.yml, the prep job uses peter-evans/find-comment to search for an existing comment indicating that a docs issue has already been opened. The output steps.issue_comment.outputs.comment-body is then interpolated directly into a bash if statement. Because comment-body is attacker-controlled text and is inserted into shell syntax without escaping, a malicious comment body can break out of the quoted string and inject arbitrary shell commands. This vulnerability is fixed with commit bbed8d28354e9c644c5a7df13946a3a0451f9ab9.

osv:CVE-2026-39382
Complete source record
{
  "id": "aaa051c4f796d51ad1478b55c7bf63a1adfde516a1f70650e9acf14289a633ed",
  "url": "https://osv.dev/vulnerability/CVE-2026-39382",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "dbt has a Command Injection in Reusable Workflow via Unsanitized comment-body Output",
    "summary": "dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. Inside the reusable workflow dbt-labs/actions/blob/main/.github/workflows/open-issue-in-repo.yml, the prep job uses peter-evans/find-comment to search for an existing comment indicating that a docs issue has already been opened. The output steps.issue_comment.outputs.comment-body is then interpolated directly into a bash if statement. Because comment-body is attacker-controlled text and is inserted into shell syntax without escaping, a malicious comment body can break out of the quoted string and inject arbitrary shell commands. This vulnerability is fixed with commit bbed8d28354e9c644c5a7df13946a3a0451f9ab9.",
    "evidence": "osv:CVE-2026-39382",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-39382",
      "aliases": [
        "CVE-2026-39382",
        "GHSA-5jxf-vmqr-5g82"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dbt-labs/actions",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "bbed8d28354e9c644c5a7df13946a3a0451f9ab9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "bbed8d28354e9c644c5a7df13946a3a0451f9ab9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bbed8d28354e9c644c5a7df13946a3a0451f9ab9"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.2.0",
            "v1.2",
            "v1",
            "v1.1.1",
            "v1.1",
            "v1.1.0",
            "v1.0.3",
            "v1.0",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.0.3",
            "v0.0",
            "v0",
            "v0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39382.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.138361577Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39382.json",
        "https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-5jxf-vmqr-5g82",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-39382",
        "https://github.com/dbt-labs/actions/commit/bbed8d28354e9c644c5a7df13946a3a0451f9ab9"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39382.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-39382",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497151,
  "published_at": "2026-04-07T19:56:15.251+00:00"
}