Public vulnerability disclosure

CVE-2026-116676

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

publishedCWE-78

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.

Technical severity8.8 highCVSS 3.1 · CNA: GitHub_M
Published2026-10-27Source updated 2026-11-03
Collected2026-11-033 attributed sources

Fixes and workarounds

Fix

github.com/runatlantis/atlantis (Go): OSV reports a fixed version 0.47.1. Check the advisory for supported release branches.

Source: OSV GHSA-rjh2-4xgw-p2hj

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
atlantis
runatlantis
>= 0.4.0, < 0.47.1 (affected) CNA: GitHub_M
github.com/runatlantis/atlantis

github.com/runatlantis/atlantis
Go
≥ 0.4.0; < 0.47.1 (affected, semver); OSV events: introduced 0.4.0; fixed 0.47.1
Source events (semver)
[
  {
    "introduced": "0.4.0"
  },
  {
    "fixed": "0.47.1"
  }
]

Other versions: unaffected
OSV GHSA-rjh2-4xgw-p2hj

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 8.8
high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCNA: GitHub_M

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide