Skip to content

GHSA-6q78-6xvr-26fg CVE-2019-1003001

Jenkins Groovy Plugin sandbox bypass vulnerability

High Maven
Severity
8.8 / 10
High · CVSS 3.1
Exploit chance (EPSS)
86.05%
Chance of exploitation in the next 30 days. Higher than 99.73% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
—
Not classified
Fix
Available
3 packages have a fixed version

Description

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.

Affected versions

Maven

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

org.jenkins-ci.plugins.workflow:workflow-cps-parent Maven → 2.61.1

maven
<dependency><groupId>org.jenkins-ci.plugins.workflow</groupId><artifactId>workflow-cps-parent</artifactId><version>2.61.1</version></dependency>
gradle
implementation("org.jenkins-ci.plugins.workflow:workflow-cps-parent:2.61.1")

org.jenkins-ci.plugins:pipeline-model-definition Maven → 1.3.4.1

maven
<dependency><groupId>org.jenkins-ci.plugins</groupId><artifactId>pipeline-model-definition</artifactId><version>1.3.4.1</version></dependency>
gradle
implementation("org.jenkins-ci.plugins:pipeline-model-definition:1.3.4.1")

org.jenkins-ci.plugins:script-security Maven → 1.50

maven
<dependency><groupId>org.jenkins-ci.plugins</groupId><artifactId>script-security</artifactId><version>1.50</version></dependency>
gradle
implementation("org.jenkins-ci.plugins:script-security:1.50")

Severity breakdown

CVSS 3.1 8.8

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
CVE-2019-1003029
Sandbox bypass in Script Security Plugin
Critical Known exploited Also affects org.jenkins-ci.plugins:script-security
GHSA-cfj9-2vgr-hpxp
Jenkins Script Security Plugin has a script security bypass vulnerability
High Also affects org.jenkins-ci.plugins:script-security
GHSA-c3jm-9vj7-5v66
Jenkins Script Security Plugin sandbox bypass vulnerability
High Also affects org.jenkins-ci.plugins:script-security
GHSA-p334-gfhq-c7w6
Jenkins Script Security Plugin: Missing permission checks allow enumeration of pending and approved classpaths
Medium Also affects org.jenkins-ci.plugins:script-security
GHSA-jv82-75fh-23r7
Missing permission check in Jenkins Script Security Plugin
Medium Also affects org.jenkins-ci.plugins:script-security
GHSA-2g4q-9vm9-9fw4
Jenkins Script Security Plugin sandbox bypass vulnerability
High Also affects org.jenkins-ci.plugins:script-security
GHSA-v63g-v339-2673
Jenkins Script Security Plugin has sandbox bypass vulnerability involving crafted constructor bodies
Critical Also affects org.jenkins-ci.plugins:script-security
GHSA-76qj-9gwh-pvv3
Sandbox bypass in Jenkins Script Security Plugin
High Also affects org.jenkins-ci.plugins:script-security
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor