GitHub Advisoryadvisory · Maven

GHSA-qvhf-3567-pc4v Sandbox bypass vulnerability in Script Security Plugin

HIGH Published 2022-05-24 Modified 2025-06-19 Official page ↗
Aliases
CVE-2020-2135
Ecosystem
Maven
Packages
org.jenkins-ci.plugins:script-security
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-693, CWE-863
Reviewed
2023-01-05

Affected packages

• Maven org.jenkins-ci.plugins:script-security: < 1.71 → fixed in 1.71

Description

Sandbox protection in Script Security Plugin 1.70 and earlier can be circumvented through: • Crafted constructor calls and bodies (due to an incomplete fix of SECURITY-582) • Crafted method calls on objects that implement `GroovyInterceptable` This allows attackers able to specify and run sandboxed scripts to execute arbitrary code in the context of the Jenkins controller JVM. Script Security Plugin 1.71 has additional restrictions and sanity checks to ensure that super constructors cannot be constructed without being intercepted by the sandbox. In addition, it also intercepts method calls on objects that implement `GroovyInterceptable` as calls to `GroovyObject#invokeMethod(String, Object)`, which is on the list of dangerous signatures and should not be approved for use in the sandbox.

Related

Alias · CVE (1)

  • CVE-2020-2135 Sandbox protection in Jenkins Script Security Plugin 1.70 and earlier could be circumvented through crafted method calls on objects that… vulnerability

Weakness · CWE (2)

  • CWE-693 Protection Mechanism Failure weakness
  • CWE-863 Incorrect Authorization weakness

References