CVE-2022-25197
Agent-to-controller security bypass in Jenkins HashiCorp Vault Plugin allows reading arbitrary files
Auswirkung
Jenkins HashiCorp Vault Plugin 336.v182c0fbaaeb7 and earlier implements functionality that allows agent processes to read arbitrary files on the Jenkins controller file system. This allows attackers able to control agent processes to read arbitrary files on the Jenkins controller file system. This vulnerability is only exploitable in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier. See the [LTS upgrade guide](https://www.jenkins.io/doc/upgrade-guide/2.303/#upgrading-to-jenkins-lts-2-303-3).
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| maven | com.datapipe.jenkins.plugins:hashicorp-vault-plugin | <= 336.v182c0fbaaeb7 | 351.vdb_f83a_1c6a_9d |
Betroffene Produkte · Jenkins
| Produkt | Betroffene Versionen |
|---|---|
| Hashicorp Vault | bis einschließlich 336.v182c0fbaaeb7 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2521
- https://github.com/advisories/GHSA-2587-w93g-63m2
- https://nvd.nist.gov/vuln/detail/CVE-2022-25197
- https://github.com/jenkinsci/hashicorp-vault-plugin/releases/tag/351.vdb_f83a_1c6a_9d
- https://github.com/jenkinsci/hashicorp-vault-plugin/commit/c564958154e5b2eccb2423b0aaabd01b928f71fc