Arbitrary file write vulnerability in Jenkins Pipeline: Input Step Plugin
High severity
GitHub Reviewed
Published
Jun 24, 2022
to the GitHub Advisory Database
•
Updated Jan 31, 2023
Package
Affected versions
< 449.v77f0e8b
Patched versions
449.v77f0e8b
Description
Published by the National Vulnerability Database
Jun 23, 2022
Published to the GitHub Advisory Database
Jun 24, 2022
Reviewed
Jul 5, 2022
Last updated
Jan 31, 2023
Pipeline: Input Step Plugin 448.v37cea_9a_10a_70 and earlier allows Pipeline authors to specify
file
parameters for Pipelineinput
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 Pipelineinput
steps. Attempts to use them will fail Pipeline execution.References