This advisory announces multiple vulnerabilities in Jenkins, CloudBees Jenkins Platform and CloudBees Jenkins Solutions.
Sandbox Bypass in Script Security and Pipeline Plugins
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 master.
All known unsafe AST transformations in Groovy are now prohibited in sandboxed scripts.
- SECURITY-1266: High
- CloudBees Traditional Platforms should be upgraded 18.104.22.168-rev3
- CloudBees Cloud Platforms should be upgraded 22.214.171.124-rev3
- CloudBees Jenkins Enterprise should be upgraded the Managed Masters and Operations Center to 126.96.36.199-rev3
- CloudBees Jenkins Platform (rolling train, CJP Operations Center and CJP Client Master 2.x.y.z) should be upgraded to version 188.8.131.52-rev3
- CloudBees Jenkins Platform (fixed train, CJP Operations Center and CJP Client Master 2.107.x.0.z) should be upgraded to version 184.108.40.206.2-rev2
- CloudBees Jenkins Team should be upgraded to version 220.127.116.11-rev3