CVE-2022-34177
Arbitrary file write vulnerability in Jenkins Pipeline: Input Step Plugin
Description
Pipeline: Input Step Plugin 448.v37cea_9a_10a_70 and earlier allows Pipeline authors to specify file parameters for Pipeline input steps even though they are unsupported. Although the uploaded file is not copied to the workspace, Jenkins archives the file on the controller as part of build metadata using the parameter name without sanitization as a relative path inside a build-related directory.
This allows attackers able to configure Pipelines to create or replace arbitrary files on the Jenkins controller file system with attacker-specified content.
Pipeline: Input Step Plugin 449.v77f0e8b_845c4 prohibits use of file parameters for Pipeline input steps. Attempts to use them will fail Pipeline execution.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » pipeline-input-step | < 449.v77f0e8b | 449.v77f0e8b |
Blast radius
35% of the dependent artifacts (27) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,912 |
| 2 hops | 5,903 |
| 3 hops | 423 |
| 4 hops | 46 |
| 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.jenkins-ci.plugins.pipeline-stage-view » pipeline-rest-api20 usages
- org.jenkins-ci.plugins » docker-workflow11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.plugins » pipeline-graph-analysis8 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
- io.jenkins.blueocean » blueocean3 usages
- io.jenkins.blueocean » blueocean-dashboard3 usages
- io.jenkins.jenkinsfile-runner » payload3 usages
- io.jenkins.plugins » opentelemetry2 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-34177 | nvd.nist.gov |
| Package | jenkinsci/pipeline-input-step-plugin | github.com |
| Web | jenkinsci/pipeline-input-step-plugin commit 77f0e8b | github.com |
| Web | security/advisory/2022-06-22 | jenkins.io |
