Skip to content
Heist/ feed
Back to feed
Medium

Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server

Type: advisorySources: OSV

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.3.0 are vulnerable to a symlink following bug allowing a malicious user with repository write access to leak sensitive YAML files from Argo CD's repo-server. A malicious Argo CD user with write access for a repository which is (or may be) used in a Helm-type Application may commit a symlink which points to an out-of-bounds file. If the target file is a valid YAML file, the attacker can read the contents of that file. Sensitive files which could be leaked include manifest files from other Applications' source repositories (potentially decrypted files, if you are using a decryption plugin) or any YAML-formatted secrets which have been mounted as files on the repo-server. Patches for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. If you are using a version >=v2.3.0 and do not have any Helm-type Applications you may disable the Helm config management tool as a workaround.

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

Source evidence

Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server

core-osv · Original source

Published 27 Jun 2022, 19:15 UTC

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.3.0 are vulnerable to a symlink following bug allowing a malicious user with repository write access to leak sensitive YAML files from Argo CD's repo-server. A malicious Argo CD user with write access for a repository which is (or may be) used in a Helm-type Application may commit a symlink which points to an out-of-bounds file. If the target file is a valid YAML file, the attacker can read the contents of that file. Sensitive files which could be leaked include manifest files from other Applications' source repositories (potentially decrypted files, if you are using a decryption plugin) or any YAML-formatted secrets which have been mounted as files on the repo-server. Patches for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. If you are using a version >=v2.3.0 and do not have any Helm-type Applications you may disable the Helm config management tool as a workaround.

osv:CVE-2022-31036
Complete source record
{
  "id": "c1a263e0fd8518a5209f7ba9bee9ee8901c03ddb49cb71957f6a2419f02a7efe",
  "url": "https://osv.dev/vulnerability/CVE-2022-31036",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server",
    "summary": "Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.3.0 are vulnerable to a symlink following bug allowing a malicious user with repository write access to leak sensitive YAML files from Argo CD's repo-server. A malicious Argo CD user with write access for a repository which is (or may be) used in a Helm-type Application may commit a symlink which points to an out-of-bounds file. If the target file is a valid YAML file, the attacker can read the contents of that file. Sensitive files which could be leaked include manifest files from other Applications' source repositories (potentially decrypted files, if you are using a decryption plugin) or any YAML-formatted secrets which have been mounted as files on the repo-server. Patches for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. If you are using a version >=v2.3.0 and do not have any Helm-type Applications you may disable the Helm config management tool as a workaround.",
    "evidence": "osv:CVE-2022-31036",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-31036",
      "aliases": [
        "CVE-2022-31036",
        "GHSA-q4w5-4gq2-98vm",
        "GO-2022-0499"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/argoproj/argo-cd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9f8608c9fcb2a1d8dcc06eeadd57e5c0334c5800"
                },
                {
                  "fixed": "a346cf933e10d872eae26bff8e58c5e7ac40db25"
                },
                {
                  "introduced": "38755a4c1e5232aa2e6f80c062593c9f07da0757"
                },
                {
                  "fixed": "04c305396458508a31d03d44afea07b1c620d7cd"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.3.0"
                      },
                      {
                        "fixed": "2.1.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.2.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2.9"
                      },
                      {
                        "last_affected": "2.2.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.4"
                      },
                      {
                        "last_affected": "2.3.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "04c305396458508a31d03d44afea07b1c620d7cd"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.9",
            "2.3.4",
            "2.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31036.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.217826775Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31036.json",
        "https://github.com/argoproj/argo-cd/security/advisories/GHSA-q4w5-4gq2-98vm",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-31036",
        "https://github.com/argoproj/argo-cd/commit/04c305396458508a31d03d44afea07b1c620d7cd"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20",
          "CWE-61"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31036.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-31036",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503247,
  "published_at": "2022-06-27T19:15:16+00:00"
}