Vulnerability · Published Mar 23, 2022 · Assigned by GitHub_M

CVE-2022-24731Path traversal allows leaking out-of-bound files from Argo CD repo-server

Medium 6.8

In plain English

A medium-severity path traversal in argo-cd from argoproj. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)1.0%top 38.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/argoproj/argo-cd2.1.11GHSA-h6h5-6fmq-rh28
Gogithub.com/argoproj/argo-cd2.2.6GHSA-h6h5-6fmq-rh28
Gogithub.com/argoproj/argo-cd2.3.0GHSA-h6h5-6fmq-rh28
Gogithub.com/argoproj/argo-cdno fix listedGO-2022-0358
Gogithub.com/argoproj/argo-cd/v22.1.11, 2.2.6, 2.3.0GO-2022-0358

Affected products (as reported)

VendorProductVersions
argoproj argo-cd >= 1.5.0, < 2.1.11>= 2.2.0, < 2.2.6>= 2.3.0-rc1, < 2.3.0

Weakness: CWE-22, CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

References