Skip to content
Heist/ feed
Back to feed
High

Path traversal and improper access control allows leaking out-of-bound files from Argo CD repo-server

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-24730
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:17 UTC · Revision 1

Source evidence

Path traversal and improper access control allows leaking out-of-bound files from Argo CD repo-server

core-osv · Original source

Published 23 Mar 2022, 20:50 UTC

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.

osv:CVE-2022-24730
Complete source record
{
  "id": "d474dcc52a77da9413895e6cd38b4b9d3ba6d3c4ee5aa1c8fe49a75717eb311c",
  "url": "https://osv.dev/vulnerability/CVE-2022-24730",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path traversal and improper access control allows leaking out-of-bound files from Argo CD repo-server",
    "summary": "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.",
    "evidence": "osv:CVE-2022-24730",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-24730",
      "aliases": [
        "CVE-2022-24730",
        "GHSA-r9cr-hvjj-496v",
        "GO-2022-0357"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/argoproj/argo-cd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9f8608c9fcb2a1d8dcc06eeadd57e5c0334c5800"
                },
                {
                  "fixed": "e25d3b54354dc529a11a1ccbb19f6338aa027525"
                },
                {
                  "introduced": "6da92a8e8103ce4145bb0fe2b7e952be79c9ff0a"
                },
                {
                  "fixed": "2e550c3f0723daf94df7343b7c40f459aafd6fff"
                },
                {
                  "introduced": "7d7eed49329197207e5b86420780696bfc8c9ca9"
                },
                {
                  "last_affected": "aa54aa7eda70f5e049c9e25df75221d899efff4b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.3.0"
                      },
                      {
                        "fixed": "2.1.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2.0"
                      },
                      {
                        "fixed": "2.2.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0-rc1"
                      },
                      {
                        "last_affected": "2.3.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0-rc2"
                      },
                      {
                        "last_affected": "2.3.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.0:rc4:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0-rc4"
                      },
                      {
                        "last_affected": "2.3.0-rc4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.0:rc5:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0-rc5"
                      },
                      {
                        "last_affected": "2.3.0-rc5"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.0-rc1",
            "2.3.0-rc2",
            "2.3.0-rc4",
            "2.3.0-rc5",
            "v2.2.5",
            "v2.3.0-rc5",
            "v2.2.4",
            "v2.3.0-rc4",
            "v2.3.0-rc2",
            "v2.3.0-rc1",
            "v2.2.3",
            "v2.2.2",
            "v2.2.1",
            "v2.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24730.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.335913356Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24730.json",
        "https://github.com/argoproj/argo-cd/security/advisories/GHSA-r9cr-hvjj-496v",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-24730"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22",
          "CWE-284"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24730.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-24730",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507931,
  "published_at": "2022-03-23T20:50:09+00:00"
}