Command Injection 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.12% (47th 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 Command Injection vulnerabilities in an interactive lesson.

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

Introduced: 15 Feb 2022

CVE-2022-25174  (opens in a new tab)
CWE-78  (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 Command Injection via crafted SCM contents. By using the same checkout directories for distinct SCMs for Pipeline libraries, attackers with Item/Configure permission can invoke arbitrary OS commands on the controller.

CVSS Scores

version 3.1