CVE-2022-24731: Path Traversal Vulnerability in Argo CD repo-server

github.com/argoproj/argo-cd Updated 02 Oct 2025

Summary

24/03/2022
Yes i
Moderate
6.8

CVE-2022-24731: Path traversal allows leaking out-of-bound files from Argo CD repo-server. Affects github.com/argoproj/argo-cd across 3 version ranges.

>= 1.5.0, < 2.1.11 >= 2.2.0, < 2.2.6 >= 2.3.0-rc1, < 2.3.0

Fixed in 2.1.11, 2.2.6 or 2.3.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Argo CD is an open-source continuous delivery tool for Kubernetes. It provides a declarative approach to manage and deploy applications in Kubernetes clusters. The repo-server component of Argo CD is responsible for managing the source code repositories used by applications. It allows users to create and update applications, granting them read/write access to the repository. However, a path traversal vulnerability in Argo CD's repo-server allows a malicious user to leak sensitive files from the repository. This vulnerability affects all unpatched versions of Argo CD starting from v1.5.0.

Vulnerability Detail

The path traversal vulnerability in Argo CD's repo-server allows a malicious user with read/write access to leak sensitive files. By crafting a malicious Helm chart and using it in an application, the attacker can retrieve the contents of any text file on the repo-server. This can include files from other application's source repositories, potentially exposing decrypted files or secrets mounted as files on the repo-server. The attacker needs to know or guess the location of the target file to exploit this vulnerability.

How To Fix

Latest published version: v1.8.7 as of 22 Oct 2026

go get github.com/argoproj/argo-cd@v1.8.7

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 1.5.0, < 2.1.11 2.1.11
    go get github.com/argoproj/argo-cd@v2.1.11
  • >= 2.2.0, < 2.2.6 2.2.6
    go get github.com/argoproj/argo-cd@v2.2.6
  • >= 2.3.0-rc1, < 2.3.0 2.3.0
    go get github.com/argoproj/argo-cd@v2.3.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

While upgrading is the recommended solution, there are some workarounds to mitigate the vulnerability. These include avoiding storing secrets in git, avoiding mounting secrets as files on the repo-server, avoiding decrypting secrets into files on the repo-server, and carefully limiting the access of users who can create or update applications. By following these practices, the risk of sensitive file leakage can be reduced.

Conclusion

The path traversal vulnerability in Argo CD's repo-server can lead to the leakage of sensitive files from the repository. It is crucial to upgrade to the patched versions of Argo CD to mitigate this vulnerability. Additionally, following the recommended workarounds can further reduce the risk of file leakage. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/argoproj/argo-cd →

Share this vulnerability

FAQ

All unpatched versions of Argo CD starting from v1.5.0 are vulnerable to this path traversal vulnerability.

By exploiting this vulnerability, an attacker with read/write access can leak sensitive files from the repo-server. This can include files from other application's source repositories or secrets mounted as files on the repo-server.

To fix this vulnerability, it is recommended to upgrade to the patched versions of Argo CD: v2.3.0, v2.2.6, or v2.1.11.

Yes, there are some workarounds to mitigate the vulnerability. These include avoiding storing secrets in git, avoiding mounting secrets as files on the repo-server, avoiding decrypting secrets into files on the repo-server, and carefully limiting the access of users who can create or update applications.

You can refer to the security documentation for the repo-server component of Argo CD. It provides detailed information on securing the git and Helm repositories used by Argo CD.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/argoproj/argo-cd.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: v1.8.7 as of 22 Oct 2026

go get github.com/argoproj/argo-cd@v1.8.7

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 1.5.0, < 2.1.11 2.1.11
    go get github.com/argoproj/argo-cd@v2.1.11
  • >= 2.2.0, < 2.2.6 2.2.6
    go get github.com/argoproj/argo-cd@v2.2.6
  • >= 2.3.0-rc1, < 2.3.0 2.3.0
    go get github.com/argoproj/argo-cd@v2.3.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback