GHSA-29q6-p2cg-4v23

Suggest an improvement
Source
https://github.com/advisories/GHSA-29q6-p2cg-4v23
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-29q6-p2cg-4v23/GHSA-29q6-p2cg-4v23.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-29q6-p2cg-4v23
Aliases
Published
2022-06-24T00:00:31Z
Modified
2023-11-08T04:09:42Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Arbitrary file write vulnerability in Jenkins Pipeline: Input Step Plugin
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2022-07-05T22:56:27Z",
    "nvd_published_at": "2022-06-23T17:15:00Z",
    "severity": "HIGH"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:pipeline-input-step

Package

Name
org.jenkins-ci.plugins:pipeline-input-step
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/pipeline-input-step

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
449.v77f0e8b

Affected versions

2.*
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.12.1
2.12.2
427.*
427.va6441fa17010
446.*
446.vf27b_0b_83500e
447.*
447.v95e5a_6e3502a_
447.449.v193fd29f6021
448.*
448.v37cea_9a_10a_70

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-29q6-p2cg-4v23/GHSA-29q6-p2cg-4v23.json"