Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 0.47.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- 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