CVE-2022-25182: Protection Mechanism Failure in Jenkins Pipeline: Shared Groovy Libraries Plugin

Summary

16/02/2022
Yes i
High
8.8

CVE-2022-25182: Jenkins Pipeline: Deprecated Groovy Libraries Plugin Protection Mechanism Failure. Affects org.jenkins-ci.plugins.workflow:workflow-cps-global-lib versions < 561.va_ce0de3c2d69. Fixed in 561.va_ce0de3c2d69. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Jenkins Pipeline: Shared Groovy Libraries Plugin is a component of the Jenkins automation server that allows users to define and share reusable Groovy libraries for their Jenkins pipelines. These libraries provide common functionality and can be used across multiple projects. The plugin integrates with the Jenkins Pipeline feature, which allows users to define their build pipelines as code. By configuring a global Pipeline library, users can easily access and utilize these shared libraries in their Jenkins pipelines.

Vulnerability Detail

A sandbox bypass vulnerability has been discovered in Jenkins Pipeline: Shared Groovy Libraries Plugin version 552.vd9cc05b8a2e1 and earlier. This vulnerability allows attackers with Item/Configure permission to execute arbitrary code on the Jenkins controller JVM. The vulnerability can be exploited by using specially crafted library names when a global Pipeline library is already configured. By exploiting this vulnerability, an attacker can gain unauthorized access to the Jenkins controller and execute arbitrary code, potentially leading to further compromise of the Jenkins environment.

How To Fix

Latest published version: 636.v3d2c06d018a_6 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

561.va_ce0de3c2d69

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is strongly recommended to upgrade to the fixed version of the Jenkins Pipeline: Shared Groovy Libraries Plugin as soon as possible.

Conclusion

In conclusion, the Jenkins Pipeline: Shared Groovy Libraries Plugin is vulnerable to a sandbox bypass vulnerability that allows attackers to execute arbitrary code on the Jenkins controller JVM. To mitigate this risk, it is crucial to upgrade to the fixed version of the plugin. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins.workflow:workflow-cps-global-lib →

Share this vulnerability

FAQ

This vulnerability allows attackers with Item/Configure permission to execute arbitrary code on the Jenkins controller JVM. This can lead to unauthorized access to the Jenkins environment and potential compromise of the entire system.

Users of Jenkins Pipeline: Shared Groovy Libraries Plugin versions 552.vd9cc05b8a2e1 and earlier are affected by this vulnerability. If a global Pipeline library is configured and an attacker has Item/Configure permission, they can exploit this vulnerability.

There is no known public exploit for this vulnerability at the time of this advisory. However, it is important to apply the recommended fix to mitigate the risk of exploitation.

The only effective mitigation for this vulnerability is to upgrade to the fixed version of the Jenkins Pipeline: Shared Groovy Libraries Plugin. It is strongly recommended to update your Jenkins installation to the latest version of the plugin.

For more information about this vulnerability, you can refer to the official Jenkins security advisory: [link to advisory]

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins.workflow:workflow-cps-global-lib.

How To Fix

Latest published version: 636.v3d2c06d018a_6 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

561.va_ce0de3c2d69

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback