CVE-2020-2279 — Sandbox bypass vulnerability in script-security
Sandbox bypass vulnerability in Jenkins Script Security Plugin
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.13%). Schedule for your next planned update.
Does your project use an affected org.jenkins-ci.plugins:script-security version?
Paste your pom.xml to check it for CVE-2020-2279 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 24, 2022 (1647 days ago).
- Last revised February 16, 2024 — 633 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.75 for org.jenkins-ci.plugins:script-security -->
<!-- Update pom.xml dependency version to 1.66.5 for org.jenkins-ci.plugins:script-security -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.jenkins-ci.plugins:script-security Maven · Affected: 1.67, 1.68, 1.69, 1.70 (+4 more) | 1.75 |
| org.jenkins-ci.plugins:script-security Maven · Affected: 1.0, 1.0-beta-1, 1.0-beta-2, 1.0-beta-3 (+88 more) | 1.66.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-693Protection Mechanism FailureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-2279ADVISORY
- https://github.com/jenkinsci/script-security-plugin/commit/79d1e9207c5c359ca779b92f0a290e18c5e2387bWEB
- https://github.com/CVEProject/cvelist/blob/16860a328d970faa6e4350b0fa446f64a52e52ca/2020/2xxx/CVE-2020-2279.jsonWEB
- https://github.com/jenkinsci/script-security-pluginPACKAGE
- https://www.jenkins.io/security/advisory/2020-09-23/#SECURITY-2020WEB
- https://www.openwall.com/lists/oss-security/2020/09/23/1WEB
Frequently Asked Questions
- What is CVE-2020-2279?
- Sandbox bypass vulnerability in Jenkins Script Security Plugin. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2020-2279?
- CVE-2020-2279 affects org.jenkins-ci.plugins:script-security. It has a 2.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-2279 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 82.6% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2017-1000245CRITICAL
Jenkins SSH Plugin user passwords for encrypted SSH keys stored in plaintext
- CVE-2020-2300CRITICAL
Improper Authentication (empty password) in Jenkins Active Directory Plugin
- CVE-2020-2301CRITICAL
Authentication cache in Active Directory Jenkins Plugin allows logging in with any password
- CVE-2022-43403CRITICAL
Jenkins Script Security Plugin sandbox bypass vulnerability
- CVE-2023-24427CRITICAL
Session fixation vulnerability in Jenkins Bitbucket OAuth Plugin
- CVE-2026-57301HIGH
Jenkins OWASP ZAP Plugin: Builds executed on the Jenkins controller can lead to RCE
- CVE-2026-57280HIGH
Jenkins Script Security Plugin sandbox bypass vulnerability
- CVE-2025-47885HIGH
Jenkins Health Advisor by CloudBees Plugin Vulnerable to Cross-Site Scripting