CVE-2022-31036 Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Kubernetes
Description
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.
Upgrade path
3 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| argoproj github.com/argoproj/argo-cd(Go) | < 2.1.16; = 2.4.0; >= 1.3.0; >= 1.3.0, < 2.1.16 +4 more | 2.1.16, 2.2.10, 2.3.5, 2.4.1 | Partially fixed |
| argoproj Argo CD | = 2.2.9; = 2.3.4; = 2.4.0; >= 1.3.0, < 2.1.6 | 2.1.6 | Fixed |
| argoproj github.com/argoproj/argo-cd | = >= 1.3.0, < 2.1.16; = >= 2.2.0, < 2.2.10; = >= 2.3.0, < 2.3.5; = >= 2.4.0, < 2.4.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| argoproj github.com/argoproj/argo-cd(Go) | >= 1.3.0, <= 1.8.7 | No fix listed |
| argoproj github.com/argoproj/argo-cd(Go) | < 2.1.16 | 2.1.16 |
| argoproj github.com/argoproj/argo-cd(Go) | >= 2.2.0, < 2.2.10 | 2.2.10 |
| argoproj github.com/argoproj/argo-cd(Go) | >= 2.3.0, < 2.3.5 | 2.3.5 |
| argoproj github.com/argoproj/argo-cd(Go) | = 2.4.0 | No fix listed |
| argoproj github.com/argoproj/argo-cd(Go) | >= 1.3.0, < 2.1.16 | 2.1.16 |
| argoproj github.com/argoproj/argo-cd(Go) | >= 2.4.0, < 2.4.1 | 2.4.1 |
| argoproj github.com/argoproj/argo-cd(Go) | >= 1.3.0 | No fix listed |
| argoproj github.com/argoproj/argo-cd | = >= 1.3.0, < 2.1.16 | No fix listed |
| argoproj github.com/argoproj/argo-cd | = >= 2.2.0, < 2.2.10 | No fix listed |
| argoproj github.com/argoproj/argo-cd | = >= 2.3.0, < 2.3.5 | No fix listed |
| argoproj github.com/argoproj/argo-cd | = >= 2.4.0, < 2.4.1 | No fix listed |
| argoproj Argo CD | >= 1.3.0, < 2.1.6 | 2.1.6 |
| argoproj Argo CD | = 2.2.9 | No fix listed |
| argoproj Argo CD | = 2.3.4 | No fix listed |
| argoproj Argo CD | = 2.4.0 | No fix listed |
References
- github.com mitigation third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com
- github.com product