Allele Security Alert
ASA-2018-00013, SECURITY-1186, CVE-2018-1000865, CVE-2018-1000866
Sandbox Bypass in Script Security and Pipeline Groovy Plugins
Jenkins Pipeline: Groovy Plugin
Jenkins Script Security Plugin
Pipeline: Groovy Plugin up to and including 2.59
Script Security Plugin up to and including 1.47
Pipeline: Groovy Plugin version 2.60
Script Security Plugin version 1.48
Proof of concept
The Groovy Sandbox library used by Script Security Plugin and Pipeline Groovy Plugin did not apply sandbox restrictions to finalize methods. This could be used to invoke arbitrary constructors and methods, bypassing sandbox protection.
Finalize methods are now prohibited in classes subject to sandbox security.
This may result in existing sandboxed scripts, such as pipelines, starting to fail if they use this language feature.
Man Yue Mo (Semmle Security Research Team)
Jenkins Security Advisory 2018-10-29
CloudBees Security Advisory 2018-10-29
Script sandbox bypass in multiple Jenkins plugins
Jenkins plugins security advisory
Jenkins Plugins – Script Security
Jenkins Plugins – Pipeline: Groovy
[SECURITY-1186] Forbid sandboxed classes from overriding finalize.
If there is any error in this alert or you wish a comprehensive analysis, let us know.
Last modified: March 6, 2019