Skip to content
OpenAdvisories
Medium · 6.5 CVE-2019-10352 EUVD-2022-5019GHSA-qr42-82qj-mw65

Improper Limitation of a Pathname to a Restricted Directory in Jenkins

Published Jul 17, 2019 · Updated Aug 4, 2024 · Assigned by jenkins

Description

A path traversal vulnerability in Jenkins 2.185 and earlier, LTS 2.176.1 and earlier in core/src/main/java/hudson/model/FileParameterValue.java allowed attackers with Job/Configure permission to define a file parameter with a file name outside the intended directory, resulting in an arbitrary file write on the Jenkins master when scheduling a build.

Affected products

VendorProductAffectedFixed
Jenkins project Jenkins 2.185 and earlier, LTS 2.176.1 and earlier —

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 jenkins 2.176.2.1563461785-1.el7 RHSA-2019:2548
Red Hat OpenShift 3 jenkins 2.176.2.1563460897-1.el7 RHSA-2019:2503

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.main:jenkins-core < 2.176.2 2.176.2 GHSA-qr42-82qj-mw65
Maven org.jenkins-ci.main:jenkins-core >= 2.177, < 2.186 2.186 GHSA-qr42-82qj-mw65

Advisories 2

References