ADVISORIES

GitHub Advisory Database

GHSA-q234-x887-9rxh

Improper Link Resolution Before File Access in Jenkins Pipeline: Shared Groovy Libraries Plugin

Moderate CVE-2022-25177

Details

Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier follows symbolic links to locations outside of the expected Pipeline library when reading files using the libraryResource step, allowing attackers able to configure Pipelines 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