CVE-2022-25173
Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Groovy Plugin
Description
Jenkins Pipeline: Groovy Plugin prior to 2656.vf7a_e7b_75a_457, 2.94.1, and 2.92.1 uses the same checkout directories for distinct SCMs when reading the script file (typically Jenkinsfile) for Pipelines, 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 | < 2.92.1>= 2.93, < 2.94.1>= 2646.v6ed3b5b01ff1, < 2656.vf7a | 2.92.1, 2.94.1, 2656.vf7a |
Blast radius
39% of the dependent artifacts (89) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 6,381 |
| 2 hops | 6,995 |
| 3 hops | 595 |
| 4 hops | 23 |
Most used dependents
- org.jenkins-ci.plugins » junit256 usages
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkins-ci.plugins.workflow » workflow-multibranch110 usages
- io.jenkins » configuration-as-code108 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jenkins-ci.plugins » aws-credentials33 usages
- org.jenkins-ci.plugins.workflow » workflow-cps-global-lib25 usages
- org.jvnet.hudson.plugins » analysis-test22 usages
- org.jenkins-ci.plugins.pipeline-stage-view » pipeline-rest-api20 usages
- org.jenkinsci.plugins » pipeline-model-extensions18 usages
- io.jenkins.plugins » checks-api15 usages
- io.jenkins.plugins » pipeline-groovy-lib15 usages
- org.jenkins-ci.plugins » pipeline-utility-steps13 usages
- org.jenkins-ci.plugins » email-ext13 usages
Computed from the dependency graph of build 20261127.1117 (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-25173 | nvd.nist.gov |
| Web | jenkinsci/workflow-cps-plugin commit f7ae7b7 | github.com |
| Web | CVEProject/cvelist CVE-2022-25173.json | github.com |
| Web | security/advisory/2022-02-15 | jenkins.io |
| Web | lists/oss-security/2022/02/15/2 | openwall.com |
