# CVE-2026-116676 - Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan

DevFeed: [CVE-2026-116676 - Atlantis: OS command injection through PR-controlled Terraform workspace enables RCE during plan](<https://devfeed.tech/articles/cve-2026-116676-atlantis-os-command-injection-through-pr-controlled-terraform-workspace-enables-rce-during-plan-102513.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-116676>)

Author: CVEFEED.io; github.com

Published: 2026-10-27T18:17:35Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [account](<https://devfeed.tech/tags/account.md>), [application](<https://devfeed.tech/tags/application.md>), [apply](<https://devfeed.tech/tags/apply.md>), [atlantis](<https://devfeed.tech/tags/atlantis.md>), [command-injection](<https://devfeed.tech/tags/command-injection.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-116676](<https://devfeed.tech/tags/cve-2026-116676.md>), [os](<https://devfeed.tech/tags/os.md>), [plan](<https://devfeed.tech/tags/plan.md>), [pr](<https://devfeed.tech/tags/pr.md>), [published](<https://devfeed.tech/tags/published.md>), [rce](<https://devfeed.tech/tags/rce.md>), [runatlantis](<https://devfeed.tech/tags/runatlantis.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

CVE-2026-116676 affects Atlantis versions 0.4.0 through versions before 0.47.1: during a plan, Atlantis joins Terraform arguments containing a pull-request-controlled workspace with spaces and executes them through `sh -c`. An authenticated contributor whose pull request is eligible for a plan can use shell metacharacters in the workspace name to run commands as the Atlantis service account, without apply permission, custom workflows, or a malicious provider. Fork pull requests are exposed only when `--allow-fork-prs` is enabled; eligible same-repository branches do not require it. Executed commands inherit the service environment and may access credentials, files, state, and network resources available to Atlantis. The issue is fixed in 0.47.1.

## Source excerpt

CVE ID :CVE-2026-116676 Published : Oct. 27, 2026, 6:17 p.m. | 1 hour, 26 minutes ago 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. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...