Jenkins Publish Over SSH Plugin 1.22 and earlier performs a validation of the file name specifying whether it is present or not, resulting in a path traversal vulnerability allowing attackers with Item/Configure permission to discover the name of the Jenkins controller files.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-23113
- https://www.jenkins.io/security/advisory/2022-01-12/#SECURITY-2307
- http://www.openwall.com/lists/oss-security/2022/01/12/6
- https://github.com/jenkinsci/publish-over-ssh-plugin/releases/tag/publish-over-ssh-1.23
- https://github.com/advisories/GHSA-j8rg-4hjm-8r95