CVE-2020-2135: High severity Jenkins Script Security Jenkins vulnerability
Sandbox protection in Jenkins Script Security Plugin 1.70 and earlier could be circumvented through crafted method calls on objects that implement GroovyInterceptable.
Other sources
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) - 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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.jenkins-ci.plugins:script-securityto a version that resolves this vulnerability.Fixed in 1.71 - Upgrade
Upgrade
Jenkins Script Security Pluginto a version that resolves this vulnerability.Fixed in 1.71Patch SECURITY-582
Event History
Frequently Asked Questions
What is the severity of CVE-2020-2135?
CVE-2020-2135 has a medium severity rating due to the potential circumvention of sandbox protections in Jenkins.
How do I fix CVE-2020-2135?
To fix CVE-2020-2135, upgrade the Jenkins Script Security Plugin to version 1.71 or later.
What systems are affected by CVE-2020-2135?
CVE-2020-2135 affects Jenkins Script Security Plugin versions up to and including 1.70.
What type of vulnerability is CVE-2020-2135?
CVE-2020-2135 is a vulnerability that allows for the circumvention of sandbox protections through crafted method calls.
Who reported CVE-2020-2135?
CVE-2020-2135 was reported as part of ongoing security improvements and vulnerability disclosures in Jenkins.