ADVISORIES

GitHub Advisory Database

GHSA-g9fx-6j5c-grmw

Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin

Details

Jenkins Pipeline: Shared Groovy Libraries Plugin prior to 561.va_ce0de3c2d69, 2.21.1, and 2.18.1 uses the same checkout directories for distinct SCMs for Pipeline libraries, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.

Affected packages

EcosystemPackageAffected versions
Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib
From 544.vff04fa68714d before 561.va (fixed in 561.va)
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