VDB
Sign up
HIGH8.8

GHSA-6q78-6xvr-26fg

Jenkins Groovy Plugin sandbox bypass vulnerability

Quick fix

GHSA-6q78-6xvr-26fg — org.jenkins-ci.plugins.workflow:workflow-cps-parent: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.61.1</version> for org.jenkins-ci.plugins.workflow:workflow-cps-parent

Details

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.

This allowed 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.

All known unsafe AST transformations in Groovy are now prohibited in sandboxed scripts.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.plugins.workflow:workflow-cps-parent
Introduced in: 0Fixed in: 2.61.1
Fix# pom.xml: bump <version>2.61.1</version> for org.jenkins-ci.plugins.workflow:workflow-cps-parent
Maven/org.jenkins-ci.plugins:pipeline-model-definition
Introduced in: 0Fixed in: 1.3.4.1
Fix# pom.xml: bump <version>1.3.4.1</version> for org.jenkins-ci.plugins:pipeline-model-definition
Maven/org.jenkins-ci.plugins:script-security
Introduced in: 0Fixed in: 1.50
Fix# pom.xml: bump <version>1.50</version> for org.jenkins-ci.plugins:script-security

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-parent"]}'