Vulnerability advisory

CVE-2024-52009

Git credentials are exposed in atlantis logs

Published Updated OSV record ↗

Also known as GHSA-gppm-hq3p-h4rpGO-2024-3265

Severity
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/runatlantis/atlantis ↗
All commits before 03e9e71f92b06cc27335524b8f59feef5a86f21703e9e71f92b06cc27335524b8f59feef5a86f217
Also listed as affected (132)
  • v0.29.0
  • v0.28.2
  • v0.28.0
  • v0.26.0
  • v0.25.0
  • v0.24.4
  • v0.24.3
  • v0.24.2
  • v0.24.1
  • v0.24.0
  • v0.23.5
  • v0.23.4
  • v0.23.3
  • v0.23.2
  • v0.23.1
  • v0.23.0
  • v0.23.0-pre.20230222
  • v0.23.0-pre.20230209
  • v0.23.0-pre.20230125
  • v0.22.3
  • v0.22.3-pre.20230111
  • v0.22.3-pre.20230110
  • v0.22.2
  • v0.22.1
  • v0.22.0
  • v0.22.0-pre.20221226
  • v0.22.0-pre.20221219
  • v0.21.1-pre.20221213
  • v0.21.0-pre.20221207
  • v0.21.0
  • v0.21.0-pre.20221120
  • v0.21.0-pre.20221114
  • v0.20.2-pre.20221106
  • v0.20.1
  • v0.20.0
  • v0.19.9
  • v0.19.9-pre.20220923
  • v0.19.9-pre.20220912
  • v0.19.9-pre.20220908
  • v0.19.9-pre.20220822
  • v0.19.8
  • v0.19.8-pre.20220810
  • v0.19.8-pre.20220722
  • v0.19.7
  • v0.19.7-pre.20220713
  • v0.19.6
  • v0.19.5
  • v0.19.5-pre.20220628
  • v0.19.5-pre.20220622
  • v0.19.5-pre.20220616
  • v0.19.4
  • v0.19.4-pre.20220513
  • v0.19.3
  • v0.19.3-pre.20220429
  • v0.19.3-pre.20220408
  • v0.19.2-pre.20220408
  • v0.19.2
  • v0.19.1
  • v0.19.0
  • v0.18.5
  • v0.18.4
  • v0.18.3
  • v0.18.2
  • v0.18.1
  • v0.18.0
  • v0.17.6
  • v0.17.5
  • v0.17.4
  • v0.17.3
  • v0.17.2
  • v0.17.1
  • v0.17.0
  • v0.17.0-beta
  • v0.16.1
  • v0.16.0
  • v0.15.1
  • v0.15.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.1
  • v0.11.0
  • v0.10.2
  • v0.10.1
  • v0.10.0
  • v0.9.0
  • v0.8.3
  • v0.8.2
  • v0.8.1
  • v0.8.0
  • v0.7.2
  • v0.7.1
  • v0.7.0
  • v0.6.0
  • v0.5.1
  • v0.5.0
  • v0.4.15
  • v0.4.14
  • v0.4.13
  • v0.4.12
  • v0.4.11
  • v0.4.10
  • v0.4.9
  • v0.4.8
  • v0.4.7
  • v0.3.10
  • v0.4.6
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.6
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0

Description

Atlantis is a self-hosted golang application that listens for Terraform pull request events via webhooks. Atlantis logs contains GitHub credentials (tokens ghs_...) when they are rotated. This enables an attacker able to read these logs to impersonate Atlantis application and to perform actions on GitHub. When Atlantis is used to administer a GitHub organization, this enables getting administration privileges on the organization. This was reported in #4060 and fixed in #4667 . The fix was included in Atlantis v0.30.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools