GHSA-6q78-6xvr-26fg
Jenkins Groovy Plugin sandbox bypass vulnerability
Quick fix
GHSA-6q78-6xvr-26fg — org.jenkins-ci.plugins.workflow:workflow-cps-parent: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.61.1</version> for org.jenkins-ci.plugins.workflow:workflow-cps-parentDetails
Jenkins Script Security sandbox protection could be circumvented during the script compilation phase by applying AST transforming annotations such as `@Grab` to source code elements.
Both the pipeline validation REST APIs and actual script/pipeline execution are affected.
This allowed users with Overall/Read permission, or able to control Jenkinsfile or sandboxed Pipeline shared library contents in SCM, to bypass the sandbox protection and execute arbitrary code on the Jenkins controller.
All known unsafe AST transformations in Groovy are now prohibited in sandboxed scripts.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.61.1# pom.xml: bump <version>2.61.1</version> for org.jenkins-ci.plugins.workflow:workflow-cps-parent0Fixed in: 1.3.4.1# pom.xml: bump <version>1.3.4.1</version> for org.jenkins-ci.plugins:pipeline-model-definition0Fixed in: 1.50# pom.xml: bump <version>1.50</version> for org.jenkins-ci.plugins:script-securityReferences
- https://nvd.nist.gov/vuln/detail/CVE-2019-1003001[ADVISORY]
- https://github.com/jenkinsci/pipeline-model-definition-plugin/commit/6d7884dec610bf34503d24d494d994e9fc607642[WEB]
- https://github.com/jenkinsci/script-security-plugin/commit/2c5122e50742dd16492f9424992deb21cc07837c[WEB]
- https://github.com/jenkinsci/workflow-cps-plugin/commit/66c3e7aafe7888d4e1fe9995a688bb3fb742d742[WEB]
- https://access.redhat.com/errata/RHBA-2019:0326[WEB]
- https://access.redhat.com/errata/RHBA-2019:0327[WEB]
- https://jenkins.io/security/advisory/2019-01-08/#SECURITY-1266[WEB]
- https://www.exploit-db.com/exploits/46572[WEB]
- http://packetstormsecurity.com/files/152132/Jenkins-ACL-Bypass-Metaprogramming-Remote-Code-Execution.html[WEB]
- http://www.rapid7.com/db/modules/exploit/multi/http/jenkins_metaprogramming[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-parent"]}'