ADVISORIES

GitHub Advisory Database

GHSA-8vfc-fcr2-47pj

Path traversal in Jenkins REPO Plugin

Details

SCMs support a number of different URL schemes, including local file system paths (e.g. using file: URLs).

Historically in Jenkins, only agents checked out from SCM, and if multiple projects share the same agent, there is no expected isolation between builds besides using different workspaces unless overridden. Some Pipeline-related features check out SCMs from the Jenkins controller as well.

This allows attackers able to configure pipelines to check out some SCM repositories stored on the Jenkins controller’s file system using local paths as SCM URLs, obtaining limited information about other projects' SCM contents.

Affected packages

EcosystemPackageAffected versions
Mavenorg.jenkins-ci.plugins:repo
All versions before 1.14.1 (fixed in 1.14.1)
Mavenorg.jenkins-ci.plugins:mercurial
All versions before 2.16.1 (fixed in 2.16.1)
Mavenorg.jenkins-ci.plugins:git
All versions before 4.11.2 (fixed in 4.11.2)

References