CVE-2022-31036: Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4801%
CWE
Published
6/21/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/argoproj/argo-cd | go | >= 1.3.0, <= 1.8.7 | 2.1.16 |
| github.com/argoproj/argo-cd/v2 | go | < 2.1.16 | 2.1.16 |
| github.com/argoproj/argo-cd/v2 | go | >= 2.2.0, < 2.2.10 | 2.2.10 |
| github.com/argoproj/argo-cd/v2 | go | >= 2.3.0, < 2.3.5 | 2.3.5 |
| github.com/argoproj/argo-cd/v2 | go | = 2.4.0 | 2.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper symlink resolution in Helm file handling. Key indicators:
- populateHelmAppDetails originally used filepath.Join() without validation (patched with pathutil.ResolveFilePath)
- loadFileIntoIfExists accepted raw paths instead of validated ResolvedFilePath type
- GetParameters loaded values.yaml without repository boundary checks All three functions lacked proper path validation against symlink attacks, allowing malicious users to read arbitrary YAML files through crafted symlinks in Helm applications.