# CVE-2026-116676: Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during 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): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T17:11:12.744Z
- Modified: 2026-11-05T23:25:37.226Z
- Also known as: GHSA-rjh2-4xgw-p2hj, GO-2026-6871
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- runatlantis atlantis: >= 0.4.0, < 0.47.1
- github.com/runatlantis/atlantis (Go): from 0.4.0 before 0.47.1

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

## References

- <https://github.com/runatlantis/atlantis/security/advisories/GHSA-rjh2-4xgw-p2hj> (exploit, advisory, web)
- <https://github.com/runatlantis/atlantis/pull/6792> (fix, web)
- <https://github.com/runatlantis/atlantis/commit/8dd22b4d0a9d7c129fdbf6a3398dd1c4cf8c3a59> (fix, web)
- <https://github.com/runatlantis/atlantis/commit/f04df0d53f0544d9eb6f5026dd8b74fbefd82ac8> (fix, web)
- <https://github.com/runatlantis/atlantis/releases/tag/v0.47.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116676> (advisory)
- <https://github.com/runatlantis/atlantis> (package)

## Sources

- CVE List: [CVE-2026-116676](https://www.cve.org/CVERecord?id=CVE-2026-116676), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-rjh2-4xgw-p2hj](https://github.com/advisories/GHSA-rjh2-4xgw-p2hj), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6871](https://pkg.go.dev/vuln/GO-2026-6871), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-116676](https://nvd.nist.gov/vuln/detail/CVE-2026-116676), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-116676 · Whole record: https://cve.day/CVE-2026-116676.json · Rebuilt by cve.day 2026-11-25T22:59:47.443Z
