{"id":"CVE-2022-24731","published":"2022-03-23T21:00:14Z","modified":"2025-04-23T18:44:21Z","title":"Path traversal allows leaking out-of-bound files from Argo CD repo-server","vendor":"argoproj","product":"argo-cd","tier":"tail","description":{"text":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD starting with version 1.5.0 but before versions 2.1.11, 2.2.6, and 2.3.0 is vulnerable to a path traversal vulnerability, allowing a malicious user with read/write access to leak sensitive files from Argo CD's repo-server. A malicious Argo CD user who has been granted `create` or `update` access to Applications can leak the contents of any text file on the repo-server. By crafting a malicious Helm chart and using it in an Application, the attacker can retrieve the sensitive file's contents either as part of the generated manifests or in 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 another Application's 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 problem can be mitigated by 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 who can `create` or `update` Applications.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0096,"percentile":0.62376,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-h6h5-6fmq-rh28","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":12.48},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"argoproj","affectedVersions":[{"vendor":"argoproj","product":"argo-cd","versions":[">= 1.5.0, < 2.1.11",">= 2.2.0, < 2.2.6",">= 2.3.0-rc1, < 2.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:08:38.049425Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd","vulnerableRanges":[">=1.5.0, <2.1.11",">=2.2.0, <2.2.6",">=2.3.0-rc1, <2.3.0",">=1.5.0"],"patched":["2.1.11","2.2.6","2.3.0"],"from":["GHSA-h6h5-6fmq-rh28","GO-2022-0358"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","vulnerableRanges":["<2.1.11",">=2.2.0, <2.2.6",">=2.3.0-rc1, <2.3.0"],"patched":["2.1.11","2.2.6","2.3.0"],"from":["GO-2022-0358"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the repo-server component of Argo CD, the Kubernetes GitOps continuous delivery tool, lets a user read files outside the intended directory. An attacker with high-privilege access (create or update rights on Applications, meaning an authenticated user) can craft a malicious Helm chart and deploy it through an Application to leak the contents of arbitrary text files on the repo-server, such as other Applications' repository files or secrets mounted as files, provided they know or can guess the target file's location.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:52:25Z"},"euvd":{"id":"EUVD-2022-1438","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24348","published":"2022-02-04","fixed":"2.1.9","kev":false,"link":{"from":"CVE-2022-24348","to":"CVE-2022-24731","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd","fromFixed":"2.1.9","toFixed":"2.1.11","daysApart":47},{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd/v2","fromFixed":"2.1.9","toFixed":"2.1.11","daysApart":47}]}},{"cve":"CVE-2022-31035","published":"2022-06-27","fixed":"2.1.16","kev":false},{"cve":"CVE-2022-31036","published":"2022-06-27","fixed":"2.1.16","kev":false},{"cve":"CVE-2022-24730","published":"2022-03-23","fixed":"2.3.0","kev":false},{"cve":"CVE-2022-24731","published":"2022-03-23","fixed":"2.3.0","kev":false},{"cve":"CVE-2022-24768","published":"2022-03-23","fixed":"2.3.2","kev":false,"link":{"from":"CVE-2022-24731","to":"CVE-2022-24768","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd","fromFixed":"2.1.11","toFixed":"2.1.14","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd/v2","fromFixed":"2.1.11","toFixed":"2.1.14","daysApart":0}]}},{"cve":"CVE-2022-31102","published":"2022-07-12","fixed":"2.4.5","kev":false},{"cve":"CVE-2022-31105","published":"2022-07-12","fixed":"2.4.5","kev":false}],"package":"Go:github.com/argoproj/argo-cd"}}