Improper access control in Pipeline: Declarative - CVE-2019-1003002
Published: October 7, 2019
Vulnerability details
The vulnerability allows a remote attacker to bypass sandbox restrictions.
The vulnerability exists due to improper access restrictions in "pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/Converter.groovy" when applying AST transforming annotations such as @Grab to source code elements. A remote authenticated attacker with Overall/Read permission, or able to control Jenkins file or sandboxed Pipeline shared library contents in SCM, can provide a pipeline script to an HTTP endpoint and execute arbitrary code on the Jenkins master JVM.
Affected software
How to mitigate CVE-2019-1003002
Links to Public Exploits and PoC-codes
- Exploit #2007 - cve-2019-1003000-jenkins-rce-poc (Jenkins RCE Proof-of-Concept: SECURITY-1266 / CVE-2019-1003000 (Script Security), CVE-2019-1003001 (Pipeline: Groovy), CVE-2019-1003002 (Pipeline: Declarative)) (March 18, 2020)
- Exploit #1549 - Jenkins ACL Bypass and Metaprogramming RCE (March 18, 2020)