Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-25179 EUVD-2022-0764GHSA-2m9w-9xh2-wxc3

Link Following in Jenkins Pipeline Multibranch Plugin

Published Feb 15, 2022 · Updated Aug 3, 2024 · Assigned by jenkins

Description

Jenkins Pipeline: Multibranch Plugin 706.vd43c65dec013 and earlier follows symbolic links to locations outside of the checkout directory for the configured SCM when reading files using the readTrusted step, allowing attackers able to configure Pipelines permission to read arbitrary files on the Jenkins controller file system.

Affected products

VendorProductAffectedFixed
Jenkins project Jenkins Pipeline: Multibranch Plugin unspecified – ≤ 706.vd43c65dec013 2.26.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 cri-o 1.21.5-3.rhaos4.8.gitaf64931.el7 RHSA-2022:0871
Red Hat OpenShift 4 haproxy +1 2.0.16-3.el7 RHSA-2022:1620, RHSA-2022:1021
Red Hat OpenShift 4 haproxy22 2.2.15-4.el8 RHSA-2022:1021
Red Hat OpenShift 4 jenkins-2-plugins 4.6.1650364520-1.el8 RHSA-2022:1620, RHSA-2022:1248, RHSA-2022:1025
Red Hat OpenShift 3 jenkins 2.319.3.1650348949-1.el7 RHSA-2022:1420
Red Hat OpenShift 3 jenkins-2-plugins 3.11.1650371376-1.el7 RHSA-2022:1420

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.plugins.workflow:workflow-multibranch >= 2.24, < 2.26.1 2.26.1 GHSA-2m9w-9xh2-wxc3
Maven org.jenkins-ci.plugins.workflow:workflow-multibranch < 2.23.1 2.23.1 GHSA-2m9w-9xh2-wxc3
Maven org.jenkins-ci.plugins.workflow:workflow-multibranch >= 696.v52535c46f4c9, < 696.698.v9b4218eea50f 696.698.v9b4218eea50f GHSA-2m9w-9xh2-wxc3
Maven org.jenkins-ci.plugins.workflow:workflow-multibranch >= 706.vd43c65dec013, < 707.v71c3f0a 707.v71c3f0a GHSA-2m9w-9xh2-wxc3

Advisories 6

References