VDB
Sign up
HIGH8.8

GHSA-hrmj-8fm9-cg8x

Jenkins External Workspace Manager Plugin has a path traversal vulnerability

Quick fix

GHSA-hrmj-8fm9-cg8x — org.jenkins-ci.plugins:external-workspace-manager: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.4.0</version> for org.jenkins-ci.plugins:external-workspace-manager

Details

Jenkins External Workspace Manager Plugin 1.3.2 and earlier does not reject `..` path segments when validating the custom workspace path provided to the `exwsAllocate` Pipeline step, allowing the resulting workspace path to escape the configured disk mount point.

This allows attackers with Item/Configure permission to read arbitrary files on the Jenkins controller file system, which can lead to remote code execution (see Reading Files).

External Workspace Manager Plugin 1.4.0 rejects `..` path segments when validating the custom workspace path, and additionally verifies that the requested path is contained within the configured disk mount point before serving it through the external workspace browse functionality.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.plugins:external-workspace-manager
Introduced in: 0Fixed in: 1.4.0
Fix# pom.xml: bump <version>1.4.0</version> for org.jenkins-ci.plugins:external-workspace-manager

References