All vulnerabilities

Go

CVE-2026-116676

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

Severity
High 8.8
Published
27 Oct 2026
Last changed
5 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.47.1
Exploit chance
0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-rjh2-4xgw-p2hj, GO-2026-6871
Sources
OSV.dev and GitHub

Description

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.

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

The vulnerable data flow is:

  • 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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/runatlantis/atlantisGo · osv:Go:github.com/runatlantis/atlantis
  • From 0.4.0 before 0.47.1

About github.com/runatlantis/atlantis

This is the only vulnerability in github.com/runatlantis/atlantis in our list.

References