Jenkins WMI Windows Agents Plugin 1.8 and earlier includes the Windows Remote Command library which has a buffer overflow vulnerability that may allow users able to connect to a named pipe to execute commands on the Windows agent machine.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-30950
- https://www.jenkins.io/security/advisory/2022-05-17/#SECURITY-2604
- http://www.openwall.com/lists/oss-security/2022/05/17/8
- https://github.com/jenkinsci/windows-slaves-plugin/commit/4638cf0e56caf839eadfdf0fab545abd2a9ac65e
- https://github.com/advisories/GHSA-xhw3-wmx2-76wf