ADVISORIES

GitHub Advisory Database

GHSA-gqhm-4h93-rrhg

Jenkins Script Security and Pipeline Groovy Plugins Sandbox Bypass

Details

A sandbox bypass vulnerability exists in Pipeline: Groovy Plugin 2.59 and earlier in groovy-sandbox/src/main/java/org/kohsuke/groovy/sandbox/SandboxTransformer.java, groovy-cps/lib/src/main/java/com/cloudbees/groovy/cps/SandboxCpsTransformer.java that allows attackers with Job/Configure permission, or unauthorized attackers with SCM commit privileges and corresponding pipelines based on Jenkinsfiles set up in Jenkins, to execute arbitrary code on the Jenkins master JVM

Affected packages

EcosystemPackageAffected versions
Mavenorg.jenkins-ci.plugins.workflow:workflow-cps
All versions before 2.60 (fixed in 2.60)
Mavenorg.jenkins-ci.plugins:script-security
All versions before 1.48 (fixed in 1.48)

References