{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"state":"PUBLISHED","cveId":"CVE-2022-39326","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","dateUpdated":"2025-04-23T16:44:28.558Z","dateReserved":"2022-09-02T00:00:00.000Z","datePublished":"2022-10-25T00:00:00.000Z"},"containers":{"cna":{"title":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2022-10-25T00:00:00.000Z"},"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":[{"type":"CWE","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","cweId":"CWE-94"}]}],"source":{"advisory":"GHSA-f9qj-7gh3-mhj4","discovery":"UNKNOWN"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-03T12:00:44.038Z"},"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"]}]},{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-04-23T16:44:28.558Z"}}]}}