Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| runatlantis | atlantis | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Runatlantis | Atlantis |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rjh2-4xgw-p2hj | Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.466% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Runatlantis
Runatlantis atlantis |
|
| Vendors & Products |
Runatlantis
Runatlantis atlantis |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Atlantis is a self-hosted golang application that listens for Terraform pull request events via webhooks. From version 0.4.0 until 0.47.1, Atlantis passes the pull-request-controlled workspace value from atlantis.yaml into Terraform command arguments that are joined with strings.Join(args, " ") and executed through sh -c. An authenticated contributor whose pull request is eligible for an Atlantis plan can include shell metacharacters in the workspace name, causing arbitrary commands to execute as the Atlantis service account without custom workflows, apply permission, or a malicious Terraform provider. External contributors can reach the flaw through fork pull requests only when --allow-fork-prs is enabled, while eligible same-repository branches do not require that option. The commands inherit the Atlantis process environment and can access cloud-provider, Terraform, and version-control credentials as well as files, state, and network resources available to the service. This issue is fixed in version 0.47.1. | |
| Title | Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan | |
| Weaknesses | CWE-78 | |
| References |
|
|
| Metrics |
cvssV3_1
|