Skip to main content
← All vulnerabilities
CVE-2026-116676EUVD-2026-111231GHSA-RJH2-4XGW-P2HJ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.47.1
None on Exploit-DB, Metasploit or GitHub

Summary

Atlantis, a self-hosted application that runs Terraform plans from pull request webhooks, is affected from versions 0.4.0 through 0.47.1. An authenticated contributor with a pull request eligible for planning can inject shell commands through the workspace name, running them as the Atlantis service account and potentially reaching its cloud, Terraform, and version-control credentials and any resources it can access.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • runatlantis atlantis

    From 0.4.0 · fixed in 0.47.1

  • github.com/runatlantis/atlantisGo

    From 0.4.0 · fixed in 0.47.1

References 5

GitHub · runatlantis/atlantis