Vulnerability · Published Oct 25, 2022 · Assigned by GitHub_M

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

High 8.8

In plain English

A high-severity code injection in github-workflows from kartverket. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 77% of all known vulnerabilities).

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)1.6%top 23.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 (as reported)

VendorProductVersions
kartverket github-workflows < 2.7.5

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References