Vulnerability advisory

CVE-2026-116676

Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan

Published Updated OSV record ↗

Also known as GHSA-rjh2-4xgw-p2hjGO-2026-6871

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/runatlantis/atlantis ↗
f5a906dd68e9d3df2bc17f877eb99f3566a903a1 to before 8dd22b4d0a9d7c129fdbf6a3398dd1c4cf8c3a598dd22b4d0a9d7c129fdbf6a3398dd1c4cf8c3a59
Not specifiedf04df0d53f0544d9eb6f5026dd8b74fbefd82ac8
Also listed as affected (133)
  • v0.47.0
  • v0.46.0
  • v0.45.0
  • v0.44.1
  • v0.44.0
  • v0.43.0
  • v0.42.0
  • v0.41.0
  • v0.40.0
  • v0.39.0
  • v0.38.0
  • v0.37.1
  • v0.37.0
  • v0.36.0
  • v0.35.1
  • v0.35.0
  • v0.34.0
  • v0.33.0
  • v0.32.0
  • v0.31.0
  • v0.30.0
  • v0.29.0
  • v0.28.2
  • v0.28.0
  • v0.26.0
  • v0.25.0
  • v0.24.4
  • v0.24.3
  • v0.24.2
  • v0.24.1
  • v0.24.0
  • v0.23.5
  • v0.23.4
  • v0.23.3
  • v0.23.2
  • v0.23.1
  • v0.23.0
  • v0.23.0-pre.20230222
  • v0.23.0-pre.20230209
  • v0.23.0-pre.20230125
  • v0.22.3
  • v0.22.3-pre.20230111
  • v0.22.3-pre.20230110
  • v0.22.2
  • v0.22.1
  • v0.22.0
  • v0.22.0-pre.20221226
  • v0.22.0-pre.20221219
  • v0.21.1-pre.20221213
  • v0.21.0-pre.20221207
  • v0.21.0
  • v0.21.0-pre.20221120
  • v0.21.0-pre.20221114
  • v0.20.2-pre.20221106
  • v0.20.1
  • v0.20.0
  • v0.19.9
  • v0.19.9-pre.20220923
  • v0.19.9-pre.20220912
  • v0.19.9-pre.20220908
  • v0.19.9-pre.20220822
  • v0.19.8
  • v0.19.8-pre.20220810
  • v0.19.8-pre.20220722
  • v0.19.7
  • v0.19.7-pre.20220713
  • v0.19.6
  • v0.19.5
  • v0.19.5-pre.20220628
  • v0.19.5-pre.20220622
  • v0.19.5-pre.20220616
  • v0.19.4
  • v0.19.4-pre.20220513
  • v0.19.3
  • v0.19.3-pre.20220429
  • v0.19.3-pre.20220408
  • v0.19.2-pre.20220408
  • v0.19.2
  • v0.19.1
  • v0.19.0
  • v0.18.5
  • v0.18.4
  • v0.18.3
  • v0.18.2
  • v0.18.1
  • v0.18.0
  • v0.17.6
  • v0.17.5
  • v0.17.4
  • v0.17.3
  • v0.17.2
  • v0.17.1
  • v0.17.0
  • v0.17.0-beta
  • v0.16.1
  • v0.16.0
  • v0.15.1
  • v0.15.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.1
  • v0.11.0
  • v0.10.2
  • v0.10.1
  • v0.10.0
  • v0.9.0
  • v0.8.3
  • v0.8.2
  • v0.8.1
  • v0.8.0
  • v0.7.2
  • v0.7.1
  • v0.7.0
  • v0.6.0
  • v0.5.1
  • v0.5.0
  • v0.4.15
  • v0.4.14
  • v0.4.13
  • v0.4.12
  • v0.4.11
  • v0.4.10
  • v0.4.9
  • v0.4.8
  • v0.4.7
  • v0.4.6
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools