TerraformPilot

Infrastructure as Code

Atlantis v0.50.0: Critical Security Fix and Breaking API/Drift Experiment Opt-In

Atlantis v0.50.0 patches a high-severity shell injection flaw and gates the API and drift detection behind a new experiments setting.

LLuca Berton4 min read

Introduction

#

Atlantis v0.50.0 is a security and breaking-change release. It patches a high-severity vulnerability in the external team-authorization command (team_authz.command) and makes the API and drift-detection features opt-in via a new experiments setting. Anyone running the Atlantis API, drift detection, or team_authz.command on Bitbucket Server / Azure DevOps should read this before upgrading.

What Is New

#

Security fix: GHSA-7v86-958w-j7hj (High, CVSS 7.2)

#

Prior to v0.50.0, when team_authz.command was configured in server-side repo config, Atlantis built the external command as a single string and executed it with sh -c, without quoting the repository full name. On Bitbucket Server (project display name) and Azure DevOps (organization, project, repository names), a crafted name could lead to arbitrary command execution with the Atlantis server's credentials, or force the check to print pass and bypass authorization entirely.

The fix now passes the Atlantis command name, repository full name, and each owner/team value as separate arguments instead of concatenating them into a shell string. The configured command and args are still executed via sh, so existing scripts keep working, and argument order is unchanged.

  • Affected: v0.49.0 and earlier, only when team_authz.command is set, only on Bitbucket Server or Azure DevOps.
  • GitHub, GitLab, Gitea, and Bitbucket Cloud are not affected (their repo names can't contain shell metacharacters).
  • Exploitation requires permission to name/rename a repo or project on the VCS host (project admin by default).
  • No configuration changes are needed to receive the fix — just upgrade.

See the repo and project permissions docs for how arguments are now passed.

Breaking change: API and drift detection require an experiments opt-in (#7030)

#

The API (/api/plan, /api/apply, /api/locks) and drift detection are now treated as experimental features. A new experiments server setting must explicitly grant them:

  • api — enables the command and lock API routes.
  • drift-detection — enables the drift routes.

On upgrade, without the matching experiment:

  • Atlantis refuses to start if api-secret, enable-drift-detection, or enable-drift-remediation is set.
  • Routes without the experiment return HTTP 404, including GET /api/locks, which was previously public.

To preserve current behavior, enable the experiments you use:

atlantis server --experiments=api,drift-detection
# or
export ATLANTIS_EXPERIMENTS=api,drift-detection
# atlantis server-side config
experiments:
  - api
  - drift-detection

For a drift-only setup, list only drift-detection. If you need to roll back to v0.49.0 or earlier, remove the experiments setting first — older binaries don't recognize it. Details in the Experiments docs and ADR 0002.

Bug fix: Atlantis no longer replies to its own comments (#6724)

#

Error, help, and command-suggestion replies are now suppressed when the triggering comment was written by the configured Atlantis account itself, preventing validation comments from triggering further replies. Valid commands (plan, apply) from that account still process normally. Atlantis now resolves its own account identity per VCS, including Bitbucket Server, Azure DevOps, and the GitHub App slug via the /app endpoint.

Dependency and image updates

#
  • Docker image: Alpine OpenSSH 10.3_p1-r2 (CVE-2026-123158, #7065), Alpine curl 8.23.0-r0 (#7027), Alpine Git 2.54.1-r0 (#7093), Alpine base 3.24.4 (#7076, #7104), git-lfs 3.8.1 (#7080).
  • Go modules: golang.org/x/crypto v0.59.0 (#7087), golang.org/x/net v0.62.0 (#7044), github.com/klauspost/compress v1.20.2 (#7066).

Docs

#

The docs site adds a version selector and publishes docs per release tag from v0.28.0 onward (#7029), and Architecture Decision Records are now published under Contributing, with ADR 0002 (API/drift) and ADR 0005 (durable storage) accepted (#7028, #7053, #7075).

Upgrade Steps

#
  1. If you use team_authz.command on Bitbucket Server or Azure DevOps, upgrade immediately — no config change needed, just pull the new version.
  2. If you use the API or drift detection, add the experiments setting before upgrading so Atlantis doesn't refuse to start:
atlantis server \
  --experiments=api,drift-detection \
  --api-secret="$API_SECRET"
  1. Pin or bump the Atlantis image/version in your deployment manifest:
# example: Docker image tag reference used in a Helm values file or compose file
# image: ghcr.io/runatlantis/atlantis:v0.50.0
  1. If using the Atlantis provider resources or a Terraform module to deploy Atlantis (e.g., via Helm chart or ECS module), update the version constraint and re-apply:
module "atlantis" {
  source  = "terraform-aws-modules/atlantis/aws" # example only, adjust to your module
  version = ">= 4.0.0" # ensure module release supports Atlantis image v0.50.0
  atlantis_image_tag = "v0.50.0"
}
  1. Re-run plan/apply for the infrastructure that deploys Atlantis:
terraform init -upgrade
terraform plan
terraform apply
  1. Restart the Atlantis server and watch the startup logs for the explicit refusal error if an experiment is missing.

Verify

#

Check the running version and confirm the experiments are active:

curl -s http://<atlantis-host>:4141/healthz
atlantis server --help | grep -A2 experiments

Confirm API routes respond as expected (200/401 if enabled, 404 if the experiment is not granted):

curl -i http://<atlantis-host>:4141/api/locks

If team_authz.command is configured, test with a repository/project name containing shell metacharacters (in a safe/staging VCS project) to confirm the authorization check no longer executes injected commands or bypasses with pass.

Conclusion

#

v0.50.0 is a mandatory upgrade for anyone using team_authz.command on Bitbucket Server or Azure DevOps due to the high-severity shell injection fix (GHSA-7v86-958w-j7hj). It's also a breaking release for API and drift-detection users, who must add the new experiments setting before upgrading or Atlantis will refuse to start. Everyone else can upgrade without configuration changes. Full details are on the release page.

#Atlantis#Terraform#GitOps#CI/CD#Security#Pull Request Automation

Share this article