CVE-2022-24730
Description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD starting with version 1.3.0 but before versions 2.1.11, 2.2.6, and 2.3.0 is vulnerable to a path traversal bug, compounded by an improper access control bug, allowing a malicious user with read-only repository access to leak sensitive files from Argo CD's repo-server. A malicious Argo CD user who has been granted `get` access for a repository containing a Helm chart can craft an API request to the `/api/v1/repositories/{repo_url}/appdetails` endpoint to leak the contents of out-of-bounds files from the repo-server. The malicious payload would reference an out-of-bounds file, and the contents of that file would be returned as part of the response. Contents from a non-YAML file may be returned as part of an error message. The attacker would have to know or guess the location of the target file. Sensitive files which could be leaked include files from other Applications' source repositories or any secrets which have been mounted as files on the repo-server. This vulnerability is patched in Argo CD versions 2.1.11, 2.2.6, and 2.3.0. The patches prevent path traversal and limit access to users who either A) have been granted Application `create` privileges or B) have been granted Application `get` privileges and are requesting details for a `repo_url` that has already been used for the given Application. There are currently no known workarounds.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
- CWE-284: Improper Access Control
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-04-23 |
Timeline
- 2022-03-23Published by the CNA20:50 UTC
- 2022-03-24GitHub advisory published (GHSA-r9cr-hvjj-496v)1 day after publication
- 2025-04-23CISA SSVC decision recorded1127 days after publication
Exploit and advisory records
GitHub advisory GHSA-r9cr-hvjj-496v, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/argoproj/argo-cd | from 1.3.0 before 2.1.11 | 2.1.11 |
| Go github.com/argoproj/argo-cd | from 2.2.0 before 2.2.6 | 2.2.6 |
| Go github.com/argoproj/argo-cd | from 2.3.0-rc1 before 2.3.0 | 2.3.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| argoproj argo_cd | from 1.3.0 before 2.1.11fixed in 2.1.11from 2.2.0 before 2.2.6fixed in 2.2.62.3.0no fix listed | 2.1.112.2.6not listed |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-24730'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-24730'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-24730'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-24730'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).