{"id":"CVE-2022-39326","aliases":["GHSA-f9qj-7gh3-mhj4"],"summary":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","published_at":"2022-10-19T18:54:28Z","modified_at":"2025-04-23T16:44:28.558Z","products":[{"slug":"github-actions","name":"GitHub Actions","category":"gitops-cicd"}],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.01686999946832657,"percentile":0.7753000259399414,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"details":"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_stack":[{"ecosystem":"GitHub Actions","package":"kartverket/github-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5"}]}],"fixed":["2.7.5"],"provider":"osv","source":"GHSA-f9qj-7gh3-mhj4","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"kartverket/github-workflows","versions":["< 2.7.5"],"provider":"cvelistv5","source":"CVE-2022-39326","relation":"self"},{"ecosystem":"NVD","package":"kartverket:github-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5"}]}],"fixed":["2.7.5"],"provider":"nvd","source":"CVE-2022-39326","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-39326","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-39326","license":"CC-BY-4.0","published_at":"2022-10-25T00:00:00Z","modified_at":"2025-04-23T16:44:28.558Z","summary":"kartverket/github-workflows's run-terraform allows for RCE via terraform plan","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-39326"}],"affected":[{"ecosystem":"CVE","package":"kartverket/github-workflows","versions":["< 2.7.5"],"provider":"cvelistv5","source":"CVE-2022-39326","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/pull/19"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"}]},{"provider":"nvd","source_id":"CVE-2022-39326","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","severity":[],"affected":[{"ecosystem":"NVD","package":"kartverket:github-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5"}]}],"fixed":["2.7.5"],"provider":"nvd","source":"CVE-2022-39326","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-f9qj-7gh3-mhj4","relation":"self","url":"https://osv.dev/vulnerability/GHSA-f9qj-7gh3-mhj4","license":"CC-BY-4.0","published_at":"2022-10-19T18:54:28Z","modified_at":"2023-11-08T04:10:19.005951Z","summary":"run-terraform allows for RCE via terraform plan","details":"### 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)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-f9qj-7gh3-mhj4"}],"affected":[{"ecosystem":"GitHub Actions","package":"kartverket/github-workflows","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5"}]}],"fixed":["2.7.5"],"provider":"osv","source":"GHSA-f9qj-7gh3-mhj4","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/pull/19"},{"type":"PACKAGE","url":"https://github.com/kartverket/github-workflows"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"}]}],"references":[{"type":"WEB","url":"https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/pull/19"},{"type":"WEB","url":"https://github.com/kartverket/github-workflows/releases/tag/v2.7.5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326"},{"type":"PACKAGE","url":"https://github.com/kartverket/github-workflows"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-39326","url":"https://www.cve.org/CVERecord?id=CVE-2022-39326","license":"CC-BY-4.0","modified_at":"2025-04-23T16:44:28.558Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-39326","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39326","relation":"self"},{"provider":"osv","source_id":"GHSA-f9qj-7gh3-mhj4","url":"https://osv.dev/vulnerability/GHSA-f9qj-7gh3-mhj4","license":"CC-BY-4.0","modified_at":"2023-11-08T04:10:19.005951Z","relation":"self"}]}
