Buffer overflow in Jenkins WMI Windows Agents plugin
Moderate severity
GitHub Reviewed
Published
May 18, 2022
to the GitHub Advisory Database
•
Updated Jan 28, 2023
Package
Affected versions
< 1.8.1
Patched versions
1.8.1
Description
Published by the National Vulnerability Database
May 17, 2022
Published to the GitHub Advisory Database
May 18, 2022
Reviewed
Jun 2, 2022
Last updated
Jan 28, 2023
WMI Windows Agents Plugin 1.8 and earlier includes the Windows Remote Command library. It provides a general-purpose remote command execution capability that Jenkins uses to check if Java is available, and if not, to install it.
This library has a buffer overflow vulnerability that may allow users able to connect to a named pipe to execute commands on the Windows agent machine.
Additionally, while the processes are started as the user who connects to the named pipe, no access control takes place, potentially allowing users to start processes even if they’re not allowed to log in.
WMI Windows Agents Plugin 1.8.1 no longer includes the Windows Remote Command library. A Java runtime is expected to be available on agent machines and WMI Windows Agents Plugin 1.8.1 does not install a JDK automatically otherwise.
References