CVE-2020-2279: Critical severity jenkins script security vulnerability

Published Sep 23, 2020
·
Updated

A sandbox bypass vulnerability in Jenkins Script Security Plugin 1.74 and earlier allows attackers with permission to define sandboxed scripts to provide crafted return values or script binding content that can result in arbitrary code execution on the Jenkins controller JVM.

Other sources

Jenkins Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute. Calls to code defined inside a sandboxed script are intercepted, and various allowlists are checked to determine whether the call is to be allowed.

In Script Security Plugin 1.75 and 1.66.5, any calls from outside a sandboxed script to code defined inside a sandboxed script were always allowed. As sandboxed scripts can communicate their results through script return values and similar mechanisms, this could result in code defined inside of a sandboxed script to be called without sandbox protection.

This vulnerability allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.

Script Security Plugin 1.75 and 1.66.5 will prevent code defined inside a sandbox from being invoked outside a sandboxed script.

In rare cases, invocations of sandboxed scripts may begin failing if the script return value or script binding include code defined in the sandbox and is further processed by the calling code. To resolve this issue, the affected values need to be converted inside the sandboxed script to a known safe type, such as String.

For compatibility with this change, the following plugins should be upgraded to the versions specified: - Email Extension Plugin should be updated to version 2.77 or newer. - Warnings Next Generation Plugin should be updated to version 8.4.3 or newer. - Warnings Plugin should be updated to version 5.0.2 or newer.

Affected Software

3 affected componentsFixes available
maven/org.jenkins-ci.plugins:script-security<1.66.5
1.66.5
maven/org.jenkins-ci.plugins:script-security>=1.67<1.75
1.75
Jenkins Script Security Jenkins<=1.74

Event History

Sep 23, 2020
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
Description
May 24, 2022
Advisory Published
05:29 PM

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2020-2279.

2

What is the severity of CVE-2020-2279?

The severity of CVE-2020-2279 is critical with a CVSS score of 9.9.

3

What is Jenkins Script Security Plugin?

Jenkins Script Security Plugin provides a sandbox feature that allows low privileged users to define scripts, including Pipelines, that are generally safe to execute.

4

How does the vulnerability in Jenkins Script Security Plugin affect users?

The vulnerability in Jenkins Script Security Plugin allows attackers to bypass the sandbox and execute arbitrary code.

5

How can I mitigate the vulnerability in Jenkins Script Security Plugin?

To mitigate the vulnerability, users should upgrade Jenkins Script Security Plugin to version 1.75 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203