CVE-2022-30950 Buffer overflow in Jenkins WMI Windows Agents plugin

High 8.8 Published Updated

An attacker with named pipe access can execute arbitrary commands on Windows agents via a buffer overflow in the Jenkins WMI plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-30950?

CVE-2022-30950 is a high-severity command injection vulnerability in Jenkins WMI Windows Agents Plugin, published on 17 May 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-120

Which versions are affected by CVE-2022-30950?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:windows-slaves. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:windows-slaves MavenAll versions1.8.1
org.jenkins-ci.plugins:windows-slaves MavenAll versions1.8.1

Products include Jenkins Wmi Windows Agents.

How do I fix CVE-2022-30950?

Upgrade org.jenkins-ci.plugins:windows-slaves to 1.8.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-30950 being exploited?

There is no known exploitation of CVE-2022-30950 in the wild and no public exploit code.

Sources

Also known as GHSA-xhw3-wmx2-76wf.

Is CVE-2022-30950 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free