Loading HuntDB...

GHSA-gj3q-p8cm-26rm

GitHub Security Advisory

Sandbox bypass vulnerability in Script Security Plugin

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

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](https://www.jenkins.io/security/advisory/2017-08-07/#super-constructor-calls))
- 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.

Affected Packages

Maven org.jenkins-ci.plugins:script-security
Affected versions: 0 (fixed in 1.7.1)

Related CVEs

Key Information

GHSA ID
GHSA-gj3q-p8cm-26rm
Published
May 24, 2022 5:10 PM
Last Modified
January 14, 2023 5:19 AM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.jenkins-ci.plugins:script-security
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 4, 2025 6:27 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.