VDB
Sign up
HIGH7.5

GHSA-84cm-vjwm-m979

Path traversal in Jenkins Git Mercurial and Repo Plugins

Quick fix

GHSA-84cm-vjwm-m979 — org.jenkins-ci.plugins:git: upgrade to the fixed version with the command below.

# pom.xml: bump <version>4.11.2</version> for org.jenkins-ci.plugins:git

Details

Jenkins 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.plugins:git
Introduced in: 0Fixed in: 4.11.2
Fix# pom.xml: bump <version>4.11.2</version> for org.jenkins-ci.plugins:git
Maven/org.jenkins-ci.plugins:mercurial
Introduced in: 0Fixed in: 2.16.1
Fix# pom.xml: bump <version>2.16.1</version> for org.jenkins-ci.plugins:mercurial
Maven/org.jenkins-ci.plugins:repo
Introduced in: 0Fixed in: 1.15.0
Fix# pom.xml: bump <version>1.15.0</version> for org.jenkins-ci.plugins:repo

References