PT-2019-11303 · Jenkins · Pipeline: Declarative Plugin+1
Orange Tsai
·
Published
2019-01-22
·
Updated
2023-10-25
·
CVE-2019-1003002
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
Pipeline: Declarative Plugin versions 1.3.3 and earlier
Description:
A sandbox bypass issue exists that allows attackers with Overall/Read permission to execute arbitrary code on the Jenkins master JVM by providing a pipeline script to an HTTP endpoint. The Jenkins 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, allowing 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 controller.Recommendations:
For Pipeline: Declarative Plugin versions 1.3.3 and earlier, consider disabling the use of AST transforming annotations such as
@Grab in sandboxed scripts until a patch is available. Restrict access to the pipeline validation REST APIs and actual script/pipeline execution to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Jenkins
Pipeline: Declarative Plugin