ADVISORIES

GitHub Advisory Database

GHSA-5hfv-mg5x-mv32

Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin

Moderate CVE-2022-25178

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

EcosystemPackageAffected versions
Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib
From 2.22 before 561.va_ce0de3c2d69 (fixed in 561.va_ce0de3c2d69)
Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib
From 2.19 before 2.21.1 (fixed in 2.21.1)
Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib
All versions before 2.18.1 (fixed in 2.18.1)

References