CVE-2020-2109: Improper Input Validation in Jenkins Pipeline: Groovy Plugin

Summary

24/05/2022
Yes i
High
8.8

CVE-2020-2109: Improper Input Validation in Jenkins Pipeline: Groovy Plugin. Affects org.jenkins-ci.plugins.workflow:workflow-cps versions < 2.79. Fixed in 2.79. 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: Groovy Plugin is a powerful tool that allows users to define and automate their Jenkins pipelines using Groovy scripts. It provides a flexible and extensible framework for defining continuous integration and delivery workflows. The plugin is widely used in the Jenkins community and offers various features such as sandbox protection to ensure the security of the pipeline scripts.

Vulnerability Detail

The Jenkins Pipeline: Groovy Plugin version 2.78 and earlier are affected by an improper input validation vulnerability. This vulnerability allows an attacker to bypass the sandbox protection mechanism through default parameter expressions in CPS-transformed methods. By exploiting this vulnerability, an attacker can execute arbitrary code with the privileges of the Jenkins user, potentially leading to unauthorized access, data manipulation, or system compromise. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Latest published version: 4395.v738456a_5da_6b_ 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

2.79

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

As a temporary workaround, users can disable the use of default parameter expressions in CPS-transformed methods. This can be achieved by modifying the affected pipeline scripts to remove or replace any default parameter expressions. It is important to carefully review the scripts and ensure that the changes do not impact the intended functionality of the pipelines. Here is an example of how to modify a pipeline script to remove a default parameter expression:

Before:

defaultParams([myParam: 'defaultValue'])

After:

defaultParams([myParam: ''])

Conclusion

The Jenkins Pipeline: Groovy Plugin version 2.78 and earlier are vulnerable to an improper input validation issue that can be exploited to bypass the sandbox protection mechanism. It is crucial for users to update the plugin to version 2.79 or later to mitigate the risk. Additionally, users can apply a temporary workaround by modifying the affected pipeline scripts. Regularly monitoring and updating dependencies is essential to ensure the security of Jenkins instances. For further support or assistance, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows an attacker to bypass the sandbox protection mechanism in the Jenkins Pipeline: Groovy Plugin. By exploiting this vulnerability, an attacker can execute arbitrary code with the privileges of the Jenkins user, potentially leading to unauthorized access, data manipulation, or system compromise.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Jenkins instance is affected by this vulnerability. Simply provide the URL of your Jenkins instance and Vulert will analyze the associated pom.xml file to identify any vulnerable dependencies.

Yes, the fix for this vulnerability is available in Jenkins Pipeline: Groovy Plugin version 2.79 or later. It is recommended to update the plugin to the latest version to mitigate the risk.

Yes, as a temporary workaround, you can modify the affected pipeline scripts to remove or replace any default parameter expressions. However, it is important to review and validate the changes to ensure the continued functionality of the pipelines.

For further support or assistance regarding the remediation of this vulnerability, you can contact info@devnack.com. Our team of experts will be happy to assist you.

Related vulnerabilities

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

How To Fix

Latest published version: 4395.v738456a_5da_6b_ 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

2.79

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