CVE-2022-25181
Java vulnerability analysis and mitigation

Overview

A sandbox bypass vulnerability (CVE-2022-25181) was discovered in Jenkins Pipeline: Shared Groovy Libraries Plugin version 552.vd9cc05b8a2e1 and earlier. The vulnerability was disclosed on February 15, 2022, affecting the Jenkins Pipeline plugin system. This high-severity vulnerability allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM through crafted SCM contents, if a global Pipeline library already exists (Jenkins Advisory).

Technical details

The vulnerability stems from the Pipeline: Deprecated Groovy Libraries Plugin using the same workspace directory for all checkouts of Pipeline libraries with the same name, regardless of the SCM being used and the source of the library configuration. The vulnerability has a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

When exploited, this vulnerability allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM. The attack is possible when a global Pipeline library already exists, potentially leading to complete system compromise (Jenkins Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Pipeline: Deprecated Groovy Libraries Plugin version 561.va_ce0de3c2d69, which implements distinct checkout directories per SCM for Pipeline libraries. Users are strongly advised to upgrade to this version or later to address the security issue (Jenkins Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14306CRITICAL10
  • JavaJava
  • net.sf.robocode:robocode.core
NoYesDec 09, 2025
CVE-2025-14307CRITICAL9.3
  • JavaJava
  • net.sf.robocode:robocode.battle
NoYesDec 09, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • at.yawk.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
GHSA-93fv-4pm9-xp28MEDIUM6.9
  • JavaJava
  • net.dv8tion:jda
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management