PT-2019-11302 · Jenkins · Groovy Plugin+2

Orange Tsai

·

Published

2019-01-22

·

Updated

2023-10-25

·

CVE-2019-1003001

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Pipeline: Groovy Plugin versions 2.61 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 to bypass the sandbox protection and execute arbitrary code on the Jenkins controller.
Recommendations: For Pipeline: Groovy Plugin versions 2.61 and earlier, consider disabling the CpsFlowDefinition and CpsGroovyShellFactory classes until a patch is available. Restrict access to the pipeline validation REST APIs and actual script/pipeline execution to minimize the risk of exploitation. Avoid using AST transforming annotations such as @Grab in sandboxed scripts until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Related Identifiers

CVE-2019-1003001
GHSA-6Q78-6XVR-26FG

Affected Products

Groovy Plugin
Jenkins
Pipeline