{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39326","id":"CVE-2022-39326","title":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","description":"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. User","descriptionLong":"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.","published":"2022-10-25T00:00:00.000Z","updated":"2026-10-28T02:30:27.741455123Z","reserved":"2022-09-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["kartverket github-workflows"],"affectedProducts":[{"vendor":"kartverket","product":"github-workflows","defaultStatus":null,"versions":[{"version":"< 2.7.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"GitHub Actions","name":"kartverket/github-workflows","purl":null,"ranges":["<2.7.5"],"fixed":["2.7.5"],"advisory":"GHSA-f9qj-7gh3-mhj4"}],"cwes":["CWE-94"],"aliases":["GHSA-f9qj-7gh3-mhj4"],"references":[{"url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/kartverket/github-workflows/pull/19","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5","tags":["x_transferred","Patch","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39326.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","tags":["advisory"]},{"url":"https://github.com/kartverket/github-workflows","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01687,"epssPercentile":0.7753,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39326","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39326","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f9qj-7gh3-mhj4","ok":true,"note":"GHSA-f9qj-7gh3-mhj4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39326","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}