Loading...
Skip to main content

CVE-2020-2279 — Sandbox bypass vulnerability in...

CRITICAL

Sandbox bypass vulnerability in Jenkins Script Security Plugin

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

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](https://plugins.jenkins.io/email-ext) should be updated to version 2.77 or newer. - [Warnings Next Generation Plugin](https://plugins.jenkins.io/warnings-ng) should be updated to version 8.4.3 or newer. - [Warnings Plugin](https://plugins.jenkins.io/warnings) should be updated to version 5.0.2 or newer.

Advisory Timeline

  • First published May 24, 2022 (1602 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.66.5 or later
<!-- Update pom.xml dependency version to 1.66.5 for org.jenkins-ci.plugins:script-security -->
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 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.jenkins-ci.plugins:script-security
maven
1.0, 1.0-beta-1, 1.0-beta-2, 1.0-beta-3 (+88 more)1.66.5
org.jenkins-ci.plugins:script-security
maven
1.67, 1.68, 1.69, 1.70 (+4 more)1.75

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. 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

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-ccr8-4xr7-cgj3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies