Skip to main content

CVE-2020-2279 — Sandbox bypass vulnerability in script-security

CRITICAL

Sandbox bypass vulnerability in Jenkins Script Security Plugin

Published May 24, 2022Updated February 16, 2024Source: OSV

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.

Check my pom.xml

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:

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.

Maven
Update org.jenkins-ci.plugins:script-security to 1.75 or later
<!-- Update pom.xml dependency version to 1.75 for org.jenkins-ci.plugins:script-security -->
Maven
Update org.jenkins-ci.plugins:script-security to 1.66.5 or later
<!-- 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).

PackageFixed 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-693
    Protection Mechanism FailureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

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

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
2.13%
EPSS percentile: 82.6

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

GHSA-ccr8-4xr7-cgj3

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml