/

CVE-2026-64679

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in Atlantis Workspace Paths

CVE-2026-64679

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22, CWE-73

Impact:

Unauthorized filesystem modification and denial of service

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Atlantis does not consistently validate user-controlled Terraform workspace values before using them to construct local filesystem paths. An attacker who can influence an accepted repository-level configuration or authenticated planning input may cause filesystem operations outside the intended pull-request workspace, potentially leading to data integrity loss or denial of service.

Affected context

The vulnerability affects Atlantis deployments where workspace values from accepted atlantis.yaml repository configuration or authenticated /api/plan requests are joined into local workspace paths before comprehensive validation. The risk is present when traversal segments can escape the intended per-pull workspace directory and the Atlantis process has write or deletion permissions on the resulting paths.

Exploit preconditions

  • Attack surface: Repository-level Atlantis configuration or the authenticated /api/plan API
  • Required access: Ability to submit or influence an accepted workspace value; API authentication may be required for API-based input
  • Trigger point: Clone preparation and other working-directory operations that create, remove, or reuse workspace paths
  • Why exploitation is possible: User-controlled path components are used in filesystem operations before Terraform or later validation rejects an invalid workspace name
  • Privilege boundary: Filesystem changes occur with the permissions of the Atlantis process

Why this happens

The underlying bug is insufficient validation and canonicalization of user-controlled path components before they are joined with trusted base directories. Traversal segments can alter the resolved location, allowing operations such as directory creation or recursive removal to target paths outside the intended workspace. This maps primarily to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, with a related CWE-73: External Control of File Name or Path condition.

Potential impact

  • An attacker may create writable directories outside the intended workspace
  • An attacker could delete or alter files and directories accessible to the Atlantis process
  • Repository operations may be disrupted, causing denial of service
  • Workspace data may be overwritten, reused, or exposed across operations
  • Terraform automation integrity could be compromised

General mitigation guidance

Mitigation generally focuses on treating workspace names as constrained identifiers rather than filesystem paths.

Common defensive patterns include:

  • Allowlisting workspace names using a strict character set and bounded length
  • Rejecting traversal segments, absolute paths, separators, and other path-control syntax before path construction
  • Canonicalizing and verifying that the resolved path remains beneath the intended workspace root
  • Keeping validation before any directory creation, deletion, cloning, or reuse operation
  • Using dedicated per-operation directories with safe ownership and restrictive permissions
  • Running Atlantis with the least filesystem privileges necessary and isolating its working area
  • Avoiding recursive deletion of paths unless the target has been independently verified as an expected workspace

How teams detect issues like this

Detection can combine static analysis, review controls, and runtime monitoring:

  • Search for user-controlled values passed to path-joining, directory creation, recursive deletion, or file-removal APIs
  • Flag filesystem paths built from repository configuration or request parameters without allowlist validation and containment checks
  • Review whether validation occurs before clone preparation and all working-directory operations
  • Add tests for traversal segments, absolute paths, encoded separators, empty values, and normalization edge cases
  • Enforce repository policies that restrict workspace naming conventions
  • Monitor Atlantis processes for filesystem changes outside approved workspace roots
  • Automated security review tools may help identify externally controlled path construction patterns

Sources

SourceLink
github.comgithub.com/runatlantis/atlantis/commit/ea4e4ceebf8b387d015fff7ed8a7fcca33279afe
github.comgithub.com/runatlantis/atlantis/pull/6254
github.comgithub.com/runatlantis/atlantis/releases/tag/v0.45.0
github.comgithub.com/runatlantis/atlantis/security/advisories/GHSA-26w5-6g95-gj28

Frequently asked

questions

It may be exploitable through authenticated API input or accepted repository-level configuration, depending on how the Atlantis instance is exposed and configured. Exploitation is not necessarily limited to local shell access.

The attacker must be able to influence a workspace value that Atlantis accepts, such as through repository configuration or an authenticated planning request. The resulting impact is limited by the filesystem permissions of the Atlantis process.

Treat workspace names as strict identifiers, reject path-control syntax, and verify after canonicalization that every resolved path remains within its intended workspace root before performing filesystem operations.

Apply centralized path validation, test normalization and traversal edge cases, use least-privilege service accounts, and monitor automation components for writes or deletions outside approved directories.

Find out what's already
exploitable in your codebase.