# CVE-2022-39326: kartverket/github-workflows's run-terraform allows for RCE via terraform plan

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Published: 2022-10-19T18:54:28.000Z
- Modified: 2026-06-17T04:58:08.970Z
- Also known as: GHSA-f9qj-7gh3-mhj4
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- kartverket github-workflows: < 2.7.5; before 2.7.5
- kartverket/github-workflows (GitHub Actions): before 2.7.5

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2022-39326](https://www.cve.org/CVERecord?id=CVE-2022-39326), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-f9qj-7gh3-mhj4](https://github.com/advisories/GHSA-f9qj-7gh3-mhj4), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39326](https://nvd.nist.gov/vuln/detail/CVE-2022-39326), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39326 · Whole record: https://cve.day/CVE-2022-39326.json · Rebuilt by cve.day 2026-11-25T22:58:15.994Z
