CVE-2022-39326
HIGH 8.8CVSS 3.1run-terraform allows for RCE via terraform plan
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.
- Published
- 25 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-f9qj-7gh3-mhj4
- Sources
- NVDJSONOSV GHSA-f9qj-7gh3-mhj4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kartverket | github-workflowscpe:2.3:a:kartverket:github-workflows:*:*:*:*:*:*:*:* |
< 2.7.5 | 2.7.5 |
| OSV | GitHub Actions | kartverket/github-workflows | < 2.7.5 | 2.7.5 |
References
- https://github.com/kartverket/github-workflows/pull/19 · Patch, Third Party Advisory, WEB
- https://github.com/kartverket/github-workflows/releases/tag/v2.7.5 · Patch, Release Notes, Third Party Advisory, WEB
- https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39326 · ADVISORY
- https://github.com/kartverket/github-workflows · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 25 Oct 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 19 Oct 2022)