CVE-2022-25183 Jenkins Pipeline: Deprecated Groovy Libraries Plugin Protection Mechanism Failure

High 8.8 Published Updated

Attackers with configure permissions can execute arbitrary code on the Jenkins controller via unsanitized library names in the Shared Groovy Libraries 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-25183?

CVE-2022-25183 is a high-severity code injection vulnerability in Jenkins Pipeline: Shared Groovy Libraries Plugin, published on 15 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the names of Pipeline libraries to create cache directories without any sanitization, allowing attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM using specially crafted library names if a global Pipeline library configured to use caching already exists.

Which versions are affected by CVE-2022-25183?

2 open source packages ship an affected version, including org.jenkins-ci.plugins.workflow:workflow-cps-global-lib. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib MavenAll versions561.va_ce0de3c2d69
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib MavenAll versions561.va_ce0de3c2d69

Products include Jenkins Pipeline\.

How do I fix CVE-2022-25183?

Upgrade org.jenkins-ci.plugins.workflow:workflow-cps-global-lib to 561.va_ce0de3c2d69 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-25183 being exploited?

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

Sources

Also known as GHSA-pfwp-q984-w7wh.

Is CVE-2022-25183 in your software?

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

Check your SBOMs for free