Arbitrary Code Execution Affecting org.jenkins-ci.plugins.workflow:workflow-cps-global-lib package, versions [,2.18.1)[2.19.0,2.21.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGJENKINSCIPLUGINSWORKFLOW-2407612
  • published21 Feb 2022
  • disclosed15 Feb 2022
  • creditUnknown

Introduced: 15 Feb 2022

CVE-2022-25183  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.jenkins-ci.plugins.workflow:workflow-cps-global-lib to version 2.18.1, 2.21.1 or higher.

Overview

org.jenkins-ci.plugins.workflow:workflow-cps-global-lib is a plugin that provides capability to extend pipeline scripts using shared libraries.

Affected versions of this package are vulnerable to Arbitrary Code Execution via names of Pipeline libraries used 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.

CVSS Scores

version 3.1