GitHub Advisory Database
GHSA-23h5-8ph6-7rfc
Path traversal vulnerability in Jenkins Fortify Plugin
Details
Jenkins Fortify Plugin 20.2.34 and earlier does not sanitize the appName and appVersion parameters of its Pipeline steps, which are used to write to files inside build directories.
This allows attackers with Item/Configure permission to write or overwrite .xml files on the Jenkins controller file system with content not controllable by the attacker.
Jenkins Fortify Plugin 20.2.35 sanitizes the appName and appVersion parameters of its Pipeline steps when determining the resulting filename.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.jenkins-ci.plugins:fortify | All versions before 20.2.35 (fixed in 20.2.35) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25188
- https://github.com/jenkinsci/fortify-plugin/commit/ba3030cb63bb86b6bb13342664e0e319f2fee374
- https://github.com/jenkinsci/fortify-plugin
- https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2214
- http://www.openwall.com/lists/oss-security/2022/02/15/2