{"id":"CVE-2022-39326","published":"2022-10-25T00:00:00Z","modified":"2025-04-23T16:44:28Z","title":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","vendor":"kartverket","product":"github-workflows","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01687,"percentile":0.77602,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4","tags":[]},{"url":"https://github.com/kartverket/github-workflows/pull/19","tags":[]},{"url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5","tags":[]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":15.52},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"kartverket","affectedVersions":[{"vendor":"kartverket","product":"github-workflows","versions":["< 2.7.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:47:34.799415Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"kartverket/github-workflows","vulnerableRanges":["<2.7.5"],"patched":["2.7.5"],"from":["GHSA-f9qj-7gh3-mhj4"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-7091","exploited":false,"provenance":"source"}}