GitHub Advisoryadvisory · GitHub Actions
GHSA-f9qj-7gh3-mhj4 run-terraform allows for RCE via terraform plan
HIGH
Official page ↗
- Aliases
- CVE-2022-39326
- Ecosystem
- GitHub Actions
- Packages
- kartverket/github-workflows
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2022-10-19
Affected packages
• GitHub Actions kartverket/github-workflows: < 2.7.5 → fixed in 2.7.5
Description
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
Related
Alias · CVE (1)
- CVE-2022-39326 kartverket/github-workflows are shared reusable workflows for GitHub Actions. vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://github.com/kartverket/github-workflows/security/advisories/GHSA-f9qj-7gh3-mhj4 web
- https://nvd.nist.gov/vuln/detail/CVE-2022-39326 advisory
- https://github.com/kartverket/github-workflows/pull/19 web
- https://github.com/kartverket/github-workflows package
- https://github.com/kartverket/github-workflows/releases/tag/v2.7.5 web