CVE-2022-25174
Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin
Description
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins.workflow » workflow-cps-global-lib | < 2.18.1>= 2.19, < 2.21.1>= 544.vff04fa68714d, < 561.va | 2.18.1, 2.21.1, 561.va |
Blast radius
32% of the dependent artifacts (28) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 650 |
| 2 hops | 2,826 |
| 3 hops | 3,708 |
| 4 hops | 22 |
| 5 hops | 6 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jvnet.hudson.plugins » analysis-test22 usages
- org.jenkins-ci.plugins » docker-workflow11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.plugins.pipeline-stage-view » pipeline-stage-view7 usages
- io.jenkins.blueocean » blueocean-events4 usages
- io.jenkins.jenkinsfile-runner » payload-dependencies4 usages
- io.jenkins.plugins » pipeline-as-yaml4 usages
- org.jenkins-ci.plugins » github-organization-folder4 usages
- io.jenkins.blueocean » blueocean3 usages
- org.jenkins-ci.plugins » gitlab-plugin3 usages
- org.jenkins-ci.plugins » pipeline-github-lib3 usages
- io.jenkins.jenkinsfile-runner » payload3 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-25174 | nvd.nist.gov |
| Web | jenkinsci/workflow-cps-global-lib-plugin commit ace0de3 | github.com |
| Web | CVEProject/cvelist CVE-2022-25174.json | github.com |
| Web | security/advisory/2022-02-15 | jenkins.io |
