Improper Control of Generation of Code ('Code Injection') Affecting org.jenkins-ci.plugins.workflow:workflow-cps package, versions [,2.62)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
21.09% (97th 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 Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGJENKINSCIPLUGINSWORKFLOW-6248165
  • published15 Feb 2024
  • disclosed25 Oct 2023
  • creditUnknown

Introduced: 25 Oct 2023

CVE-2019-1003002  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.jenkins-ci.plugins.workflow:workflow-cps to version 2.62 or higher.

Overview

org.jenkins-ci.plugins.workflow:workflow-cps is a Jenkins Plugins Parent POM Project.

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') via the pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/Converter.groovy function. An attacker can execute arbitrary code on the Jenkins master JVM by providing a pipeline script to an HTTP endpoint. This is only exploitable if the attacker has Overall/Read permission.

CVSS Scores

version 3.1