{"id":"CVE-2022-39326","state":"PUBLISHED","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. 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.","publishedAt":"2022-10-25T00:00:00.000Z","updatedAt":"2025-04-23T16:44:28.558Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["kartverket github-workflows"],"affected":[{"vendor":"kartverket","product":"github-workflows","versions":[{"version":"< 2.7.5","status":"affected"}]}],"references":["https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4","https://github.com/kartverket/github-workflows/pull/19","https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T19:50:29.496Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/39xxx/CVE-2022-39326.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-39326","state":"PUBLISHED","datePublished":"2022-10-25T00:00:00.000Z","dateUpdated":"2025-04-23T16:44:28.558Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-09-02T00:00:00.000Z"},"containers":{"cna":{"title":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"kartverket","product":"github-workflows","versions":[{"version":"< 2.7.5","status":"affected"}]}],"references":[{"url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"},{"url":"https://github.com/kartverket/github-workflows/pull/19"},{"url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2022-10-25T00:00:00.000Z"},"source":{"advisory":"GHSA-f9qj-7gh3-mhj4","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4","tags":["x_transferred"]},{"url":"https://github.com/kartverket/github-workflows/pull/19","tags":["x_transferred"]},{"url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T12:00:44.038Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-23T15:47:34.799415Z","id":"CVE-2022-39326","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-23T16:44:28.558Z"}}]}}}