CVE-2026-116676: OS command injection through PR-controlled Terraform workspace enables RCE during plan in github.com/runatlantis/atlantis
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-rjh2-4xgw-p2hj, GO-2026-6871
Summary
A vulnerability in github.com/runatlantis/atlantis allows for OS command injection when processing PR-controlled Terraform workspaces. Organizations using Atlantis versions between 0.4.0 and 0.47.0 should update immediately to prevent potential remote code execution.
Who is affected
Affected deployments are vulnerable when processing Terraform plans using workspaces controlled via pull requests. An attacker can leverage this flaw to execute arbitrary OS commands on the server running the Atlantis application. This requires the attacker to have sufficient control over the PR-triggered Terraform configuration.
Exploitability
The vulnerability is not associated with an official CVSS vector or score. The EPSS score of 0.005 indicates a low likelihood of widespread automated exploitation, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade github.com/runatlantis/atlantis to version 0.47.1 or higher.
- Restrict pull request access to trusted contributors to minimize the risk of malicious workspace configuration.
How to check your project
- Check go.mod or the Atlantis deployment manifest to verify if the version of github.com/runatlantis/atlantis is between 0.4.0 and 0.47.0.
- Run 'go list -m github.com/runatlantis/atlantis' in the project directory to confirm the active dependency version.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/runatlantis/atlantis |
>= 0.4.0, < 0.47.1 | 0.47.1 | go get github.com/runatlantis/[email protected] |
FAQ
Is this vulnerability actively exploited?
There is no evidence of active exploitation according to CISA KEV data.
What specifically causes the command injection?
The flaw is triggered during the Terraform plan phase through PR-controlled Terraform workspaces.
Is there a workaround if I cannot upgrade immediately?
Not documented.
Original advisory description
References
- ADVISORY https://github.com/runatlantis/atlantis/security/advisories/GHSA-rjh2-4xgw-p2hj
- FIX https://github.com/runatlantis/atlantis/commit/8dd22b4d0a9d7c129fdbf6a3398dd1c4cf8c3a59
- FIX https://github.com/runatlantis/atlantis/commit/f04df0d53f0544d9eb6f5026dd8b74fbefd82ac8
- FIX https://github.com/runatlantis/atlantis/pull/6792
- WEB https://github.com/runatlantis/atlantis/releases/tag/v0.47.1
Source records: GO-2026-6871 (OSV.dev) · EPSS by FIRST, 2026-11-26.