high8.8
CVE-2022-25173
Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Groovy Plugin
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.jenkins-ci.plugins.workflow:workflow-cps | >= 2646.v6ed3b5b01ff1, < 2656.vf7a | 2656.vf7a |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Jenkins | Pipeline\ | through 2648.va9433432b33c |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.openwall.com/lists/oss-security/2022/02/15/2
- https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2463
- https://github.com/advisories/GHSA-4m7p-55jm-3vwv
- https://nvd.nist.gov/vuln/detail/CVE-2022-25173
- https://github.com/CVEProject/cvelist/blob/3615f493b8a36ff15735fb9d79c9dc9e0d542695/2022/25xxx/CVE-2022-25173.json
- https://github.com/jenkinsci/workflow-cps-plugin/commit/f7ae7b75a457976853539bff1db52373b85fdb85