ADVISORIES

GitHub Advisory Database

GHSA-hrmj-8fm9-cg8x

Jenkins External Workspace Manager Plugin has a path traversal vulnerability

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.jenkins-ci.plugins:external-workspace-manager
All versions before 1.4.0 (fixed in 1.4.0)

References