8.8high
kartverket/github-workflows's run-terraform allows for RCE via terraform plan
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.69% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f9qj-7gh3-mhj4
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
| Product or package | Versions | Reported by |
|---|---|---|
| kartverket github-workflows | < 2.7.5, before 2.7.5 | CVE List, NVD |
| kartverket/github-workflows (GitHub Actions) | before 2.7.5 | GitHub Advisory Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
What kind of vulnerability is it? Who is impacted?
All 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.
Patches
Has the problem been patched? What versions should users upgrade to?
Upgrade to at least 2.7.5 to resolve the issue.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Until you are able to upgrade, make sure to review any PRs from exernal users for malicious payloads before allowing them to trigger a build.
For more information
If you have any questions or comments about this advisory:
- Open an issue in kartverket/github-workflows
NVD (es)
kartverket/github-workflows son flujos de trabajo reusables compartidos para las acciones de GitHub. versiones anteriores a 2.7.5, todos los usuarios del flujo de trabajo reusable "run-terraform" del repositorio kartverket/github-workflows están afectados por una vulnerabilidad de inyección de código. Un actor malicioso podría enviar una RP con una carga útil maliciosa que conlleva a una ejecución de código JavaScript arbitrario en el contexto del flujo de trabajo. Los usuarios deben actualizar al menos a versión 2.7.5 para resolver el problema. Como mitigación, revise cualquier petición de usuarios externos en busca de cargas útiles maliciosas antes de permitir que desencadenen una compilación
References
| https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4 | third-party-advisory, web | |
| 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://nvd.nist.gov/vuln/detail/CVE-2022-39326 | advisory | |
| https://github.com/kartverket/github-workflows | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39326 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f9qj-7gh3-mhj4 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-39326 changed 2026-06-17 | Public domain |