Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.jenkins-ci.plugins/script-security
  4. ›
  5. CVE-2020-2135

CVE-2020-2135: Sandbox bypass vulnerability in Script Security Plugin

May 24, 2022 (updated June 19, 2025)

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.

References

  • github.com/advisories/GHSA-qvhf-3567-pc4v
  • github.com/jenkinsci/script-security-plugin
  • github.com/jenkinsci/script-security-plugin/commit/5b1969e0bdf5cde04a165b847144756b28495788
  • jenkins.io/security/advisory/2020-03-09/
  • nvd.nist.gov/vuln/detail/CVE-2020-2135

Code Behaviors & Features

Detect and mitigate CVE-2020-2135 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.71

Fixed versions

  • 1.71

Solution

Upgrade to version 1.71 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

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

Source file

maven/org.jenkins-ci.plugins/script-security/CVE-2020-2135.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 09 Sep 2025 00:19:37 +0000.