[JENKINS:SECURITY-2020] Sandbox bypass vulnerability in `script-security`

Severity High
Affected Packages 2
Fixed Packages 2
CVEs 1

script-security 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 1.74 and earlier, 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 1.75 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:

  • plugin:email-ext[Email Extension Plugin] should be updated to version 2.77 or newer.
  • plugin:warnings-ng[Warnings Next Generation Plugin] should be updated to version 8.4.3 or newer.
  • plugin:warnings[Warnings Plugin] should be updated to version 5.0.2 or newer.
ID
JENKINS:SECURITY-2020
Severity
high
Published
2020-09-23T00:00:00
(4 years ago)
Modified
2020-09-23T00:00:00
(4 years ago)
Rights
Jenkins Security Team
Other Advisories
Source # ID Name URL
Plugin repository script-security repository https://github.com/jenkinsci/script-security-plugin
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.jenkins-ci.plugins/script-security org.jenkins-ci.plugins script-security <= 1.74
Fixed pkg:maven/org.jenkins-ci.plugins/script-security org.jenkins-ci.plugins script-security = 1.75
Affected pkg:github/jenkinsci/script-security-plugin jenkinsci script-security-plugin <= 1.74
Fixed pkg:github/jenkinsci/script-security-plugin jenkinsci script-security-plugin = 1.75
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...