GitHub Advisory Database
GHSA-5hfv-mg5x-mv32
Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin
Details
Jenkins Pipeline: Shared Groovy Libraries Plugin does not restrict the names of resources passed to the libraryResource step, allowing attackers able to configure Pipelines permission to read arbitrary files on the Jenkins controller file system.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | From 2.22 before 561.va_ce0de3c2d69 (fixed in 561.va_ce0de3c2d69) |
| Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | From 2.19 before 2.21.1 (fixed in 2.21.1) |
| Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | All versions before 2.18.1 (fixed in 2.18.1) |