CVE-2022-43402
Jenkins Pipeline: Groovy Plugin allows sandbox protection bypass and arbitrary code execution
Description
A sandbox bypass vulnerability involving various casts performed implicitly by the Groovy language runtime in Jenkins Pipeline: Groovy Plugin 2802.v5ea_628154b_c2 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM. Pipeline: Groovy Plugin 2803.v1a_f77ffcc773 intercepts Groovy casts performed implicitly by the Groovy language runtime
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins.workflow » workflow-cps | < 2803.v1a_f77ffcc773 | 2803.v1a_f77ffcc773 |
Blast radius
41% of the dependent artifacts (94) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7,461 |
| 2 hops | 7,745 |
| 3 hops | 815 |
| 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 » pipeline-groovy-lib15 usages
- io.jenkins.plugins » checks-api15 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-43402 | nvd.nist.gov |
| Web | security/advisory/2022-10-19 | jenkins.io |
| Web | lists/oss-security/2022/10/19/3 | openwall.com |
