GitHub Advisoryadvisory · Maven

GHSA-29q6-p2cg-4v23 Arbitrary file write vulnerability in Jenkins Pipeline: Input Step Plugin

HIGH Published 2022-06-24 Modified 2022-12-05 Official page ↗
Aliases
CVE-2022-34177
Ecosystem
Maven
Packages
org.jenkins-ci.plugins:pipeline-input-step
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2022-07-05

Affected packages

• Maven org.jenkins-ci.plugins:pipeline-input-step: < 449.v77f0e8b → fixed in 449.v77f0e8b

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.

Related

Alias · CVE (1)

  • CVE-2022-34177 Jenkins Pipeline: Input Step Plugin 448.v37cea_9a_10a_70 and earlier archives files uploaded for `file` parameters for Pipeline `input`… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References