What’s Vulnerable › Vulnerabilities
CVE-2022-39326: kartverket/github-workflows's run-terraform allows for RCE via terraform plan
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-25 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- kartverket github-workflows: before 2.7.5 — fixed in 2.7.5
How to fix
Upgrade to a fixed version: kartverket github-workflows 2.7.5. Check the vendor advisory for mitigations.
References
- https://github.com/kartverket/github-workflows/pull/19
- https://github.com/kartverket/github-workflows/releases/tag/v2.7.5
- 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
- https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4
Get alerted when CVE-2022-39326 or the next vulnerability affects your stack