{"id":"GHSA-f9qj-7gh3-mhj4","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)\n","aliases":["CVE-2022-39326"],"modified":"2026-09-15T06:33:52.410804313Z","published":"2022-10-19T18:54:28Z","database_specific":{"cwe_ids":["CWE-94"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-10-19T18:54:28Z","nvd_published_at":"2022-10-25T17:15:00Z"},"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"}],"affected":[{"package":{"name":"kartverket/github-workflows","ecosystem":"GitHub Actions"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5"}]},{"type":"GIT","repo":"https://github.com/kartverket/github-workflows","events":[{"introduced":"0"},{"fixed":"5906b1a328b3559c8a4c435aaf2c21d195834484"}]}],"versions":["v2.7.4","v2.7.3","v2.7.2","v2.7.1","v2.7","v2.6","v2.4","v2.3","v2.2","v2.1","v2","v1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-f9qj-7gh3-mhj4/GHSA-f9qj-7gh3-mhj4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}