{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:kartverket:github-workflows:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5906b1a328b3559c8a4c435aaf2c21d195834484"
            }
          ],
          "repo": "https://github.com/kartverket/github-workflows",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-f9qj-7gh3-mhj4"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39326.json"
  },
  "details": "kartverket/github-workflows are shared reusable workflows for GitHub Actions. Prior to version 2.7.5, all users of the `run-terraform` reusable workflow from the kartverket/github-workflows repo are affected by a code injection vulnerability. A malicious actor could potentially send a PR with a malicious payload leading to execution of arbitrary JavaScript code in the context of the workflow. Users should upgrade to at least version 2.7.5 to resolve the issue. As a workaround, review any pull requests from external users for malicious payloads before allowing them to trigger a build.",
  "id": "CVE-2022-39326",
  "modified": "2026-08-12T03:51:41.287588119Z",
  "published": "2022-10-25T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39326.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-39326"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kartverket/github-workflows/pull/19"
    }
  ],
  "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": "kartverket/github-workflows's run-terraform allows for RCE via terraform plan"
}