{"id":"CVE-2022-39326","aliases":["CVE-2022-39326","GHSA-f9qj-7gh3-mhj4"],"related":[],"kind":"vulnerability","state":"published","title":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_  \nAll users of the `run-terraform` reusable workflow from the kartverket/github-workflows repo are affected. 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_  \nUpgrade to at least 2.7.5 to resolve the issue.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_  \nUntil you are able to upgrade, make sure to review any PRs from exernal users for malicious payloads before allowing them to trigger a build.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [kartverket/github-workflows](https://github.com/kartverket/github-workflows)","format":"markdown","source":"ghsa"},{"lang":"es","text":"kartverket/github-workflows son flujos de trabajo reusables compartidos para las acciones de GitHub. versiones anteriores a 2.7.5, todos los usuarios del flujo de trabajo reusable \"run-terraform\" del repositorio kartverket/github-workflows están afectados por una vulnerabilidad de inyección de código. Un actor malicioso podría enviar una RP con una carga útil maliciosa que conlleva a una ejecución de código JavaScript arbitrario en el contexto del flujo de trabajo. Los usuarios deben actualizar al menos a versión 2.7.5 para resolver el problema. Como mitigación, revise cualquier petición de usuarios externos en busca de cargas útiles maliciosas antes de permitir que desencadenen una compilación","source":"nvd"}],"published":"2022-10-19T18:54:28.000Z","modified":"2026-06-17T04:58:08.970Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 2.7.5","status":"affected"}],"vendor":"kartverket","product":"github-workflows","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.7.5"}],"ecosystem":"GitHub Actions","package":"kartverket/github-workflows","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.7.5"}],"vendor":"kartverket","product":"github-workflows","cpe":"cpe:2.3:a:kartverket:github-workflows:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kartverket/github-workflows/pull/19","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5","tags":["patch","release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kartverket/github-workflows","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:47:34.799Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39326","url":"https://www.cve.org/CVERecord?id=CVE-2022-39326","licence":"CVE Terms of Use","modified":"2025-04-23T16:44:28.558Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9qj-7gh3-mhj4","url":"https://github.com/advisories/GHSA-f9qj-7gh3-mhj4","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:19.005Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39326","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","licence":"Public domain","modified":"2026-06-17T04:58:08.970Z"}],"updatedAt":"2026-11-25T22:58:15.994Z","epss":{"score":0.01687,"percentile":0.77716,"date":"2026-12-01T12:00:22.000Z"}}