github.com/argoproj/argo-cd
Affected
- introduced
1.3.0, fixed2.1.16(semver)
Fixed versions
2.1.16
Fix
- Fixed version
2.1.16go get github.com/argoproj/[email protected]
Advisory
Also known as: CVE-2022-31036, GO-2022-0499
Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server
Impact
All unpatched 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
A patch for this vulnerability has been released in the following Argo CD versions:
Workarounds
Mitigations
Best practices which can mitigate risk
Credits
Disclosed by ADA Logics in a security audit of the Argo project sponsored by CNCF and facilitated by OSTIF. Thanks to Adam Korczynski and David Korczynski for their work on the audit.
References
For more information
Medium Basis: The source's own band: MODERATE
1.3.0, fixed 2.1.16 (semver)2.1.16
2.1.16go get github.com/argoproj/[email protected]0, fixed 2.1.16 (semver)2.1.16
2.1.16go get github.com/argoproj/argo-cd/[email protected]2.2.0, fixed 2.2.10 (semver)2.2.10
2.2.10go get github.com/argoproj/argo-cd/[email protected]2.3.0, fixed 2.3.5 (semver)2.3.5
2.3.5go get github.com/argoproj/argo-cd/[email protected]2.4.0, fixed 2.4.1 (semver)2.4.1
2.4.1go get github.com/argoproj/argo-cd/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0