Improper access control in Pipeline: Groovy - CVE-2018-1000866
Published: October 7, 2019
Pipeline: Groovy
Detailed vulnerability description
The vulnerability allows a remote attacker to bypass sandbox restrictions.
The vulnerability exists in "groovy-sandbox/src/main/java/org/kohsuke/groovy/sandbox/SandboxTransformer.java" and "groovy-cps/lib/src/main/java/com/cloudbees/groovy/cps/SandboxCpsTransformer.java" due to the Groovy Sandbox library does not apply sandbox restrictions to finalize methods. A remote authenticated attacker with Job/Configure permission, or non-authenticated attacker with SCM commit privileges and corresponding pipelines based on Jenkins files set up in Jenkins, can bypass the sandbox protection and execute arbitrary code on the Jenkins master.