kartverket/github-workflows's run-terraform allows for RCE via terraform plan
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kartverket | github-workflows | before 2.7.5 | 2.7.5 | Patch available | CNA |
| — | kartverket/github-workflows (GitHub Actions) | before 2.7.5 | 2.7.5 | Patch available | GHSA-f9qj-7gh3-mhj4 |
- github-workflows Vendorkartverket Affected before 2.7.5 Fixed in 2.7.5 Patch available CNA
- kartverket/github-workflows (GitHub Actions) Vendor— Affected before 2.7.5 Fixed in 2.7.5 Patch available GHSA-f9qj-7gh3-mhj4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kartverket:github-workflows:*:*:*:*:*:*:*:* | before 2.7.5 | Vulnerable | kartverket |
- cpe:2.3:a:kartverket:github-workflows:*:*:*:*:*:*:*:* Versions before 2.7.5 Vulnerable ·kartverket
Remediation
- Fix · CNA github-workflows (kartverket) Fixed in 2.7.5
- Fix · GHSA-f9qj-7gh3-mhj4 kartverket/github-workflows (GitHub Actions) Fixed in 2.7.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39326
- 2026-10-03 Alias added: GHSA-f9qj-7gh3-mhj4
References
Patch 2
Advisory 2
Sources
- CVE-2022-39326 · CVE Program
- CVE-2022-39326 · NVD
- FIRST EPSS
- GHSA-f9qj-7gh3-mhj4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences