[JENKINS:SECURITY-2824-2] Sandbox bypass vulnerability in Pipeline: Groovy Libraries Plugin and Pipeline: Deprecated Groovy Libraries Plugin
Pipeline: Groovy Libraries Plugin and older releases of the Pipeline: Deprecated Groovy Libraries Plugin (formerly Pipeline: Shared Groovy Libraries Plugin) define the library
Pipeline step, which allows Pipeline authors to dynamically load Pipeline libraries.
The return value of this step can be used to instantiate classes defined in the loaded library.
In Pipeline: Groovy Libraries Plugin 612.v84da_9c54906d and earlier and in Pipeline: Deprecated Groovy Libraries Plugin 583.vf3b_454e43966 and earlier, the library
step can be used to invoke sandbox-generated synthetic constructors in crafted untrusted libraries and construct any subclassable type.
This is similar to SECURITY-582 in the link:/security/advisory/2017-08-07/#multiple-groovy-language-features-allowed-script-security-plugin-sandbox-bypass[2017-08-07 security advisory], but in a different plugin.
This vulnerability allows attackers with permission to define untrusted Pipeline libraries and to define and run sandboxed Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
Pipeline: Groovy Libraries Plugin 613.v9c41a_160233f rejects improper calls to sandbox-generated synthetic constructors when using the library
step.
Pipeline: Deprecated Groovy Libraries Plugin 588.v576c103a_ff86 no longer contains the library
step.
It has been moved into the Pipeline: Groovy Libraries Plugin.
Package | Affected Version |
---|---|
pkg:maven/org.jenkins-ci.plugins/workflow-cps-global-lib | <= 583.vf3b_454e43966 |
pkg:maven/org.jenkins-ci.plugins/pipeline-groovy-lib | <= 612.v84da_9c54906d |
pkg:github/jenkinsci/workflow-cps-global-lib-plugin | <= 583.vf3b_454e43966 |
pkg:github/jenkinsci/pipeline-groovy-lib-plugin | <= 612.v84da_9c54906d |
Package | Fixed Version |
---|---|
pkg:maven/org.jenkins-ci.plugins/workflow-cps-global-lib | = 588.v576c103a_ff86 |
pkg:maven/org.jenkins-ci.plugins/pipeline-groovy-lib | = 613.v9c41a_160233f or 612.614.v48dcb_f62a_640 |
pkg:github/jenkinsci/workflow-cps-global-lib-plugin | = 588.v576c103a_ff86 |
pkg:github/jenkinsci/pipeline-groovy-lib-plugin | = 613.v9c41a_160233f or 612.614.v48dcb_f62a_640 |
- ID
- JENKINS:SECURITY-2824-2
- Severity
- high
- Published
-
2022-10-19T00:00:00
(23 months ago) - Modified
-
2022-10-19T00:00:00
(23 months ago) - Rights
- Jenkins Security Team
- Other Advisories
Source | # ID | Name | URL |
---|---|---|---|
Plugin repository | pipeline-groovy-lib repository | https://github.com/jenkinsci/pipeline-groovy-lib-plugin | |
Plugin repository | workflow-cps-global-lib repository | https://github.com/jenkinsci/workflow-cps-global-lib-plugin |
Type | Package URL | Namespace | Name / Product | Version | Distribution / Platform | Arch | Patch / Fix |
---|---|---|---|---|---|---|---|
Affected | pkg:maven/org.jenkins-ci.plugins/workflow-cps-global-lib | org.jenkins-ci.plugins | workflow-cps-global-lib | <= 583.vf3b_454e43966 | |||
Fixed | pkg:maven/org.jenkins-ci.plugins/workflow-cps-global-lib | org.jenkins-ci.plugins | workflow-cps-global-lib | = 588.v576c103a_ff86 | |||
Affected | pkg:maven/org.jenkins-ci.plugins/pipeline-groovy-lib | org.jenkins-ci.plugins | pipeline-groovy-lib | <= 612.v84da_9c54906d | |||
Fixed | pkg:maven/org.jenkins-ci.plugins/pipeline-groovy-lib | org.jenkins-ci.plugins | pipeline-groovy-lib | = 613.v9c41a_160233f or 612.614.v48dcb_f62a_640 | |||
Affected | pkg:github/jenkinsci/workflow-cps-global-lib-plugin | jenkinsci | workflow-cps-global-lib-plugin | <= 583.vf3b_454e43966 | |||
Fixed | pkg:github/jenkinsci/workflow-cps-global-lib-plugin | jenkinsci | workflow-cps-global-lib-plugin | = 588.v576c103a_ff86 | |||
Affected | pkg:github/jenkinsci/pipeline-groovy-lib-plugin | jenkinsci | pipeline-groovy-lib-plugin | <= 612.v84da_9c54906d | |||
Fixed | pkg:github/jenkinsci/pipeline-groovy-lib-plugin | jenkinsci | pipeline-groovy-lib-plugin | = 613.v9c41a_160233f or 612.614.v48dcb_f62a_640 |
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | Exploits | PoC | Pubblication Date | Modification Date |
---|---|---|---|---|---|---|---|---|---|---|---|
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | PoC | Pubblication Date | Modification Date |