All vulnerabilities
CVE-2026-57282GHSA-wp5x-hrrw-6r4g

org.jenkins-ci.plugins:git-client: Jenkins Git client Plugin has an OS command injection vulnerability on agents

Jenkins Project org.jenkins-ci.plugins:git-clientmavenApplications & CMS
CVSS
5.0Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.25%Chance of exploitation activity in the next 30 days, higher than 15% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in6.6.1Fixed versionGitHub
Published24 Jun 2026Updated 25 Sep 2026CVE List

What fixes it

  • 6.6.1org.jenkins-ci.plugins:git-client, mavenGitHub<dependency><groupId>org.jenkins-ci.plugins</groupId><artifactId>git-client</artifactId><version>6.6.1</version></dependency>
  • 6.6.1org.jenkins-ci.plugins:git-client, MavenOSV<dependency><groupId>org.jenkins-ci.plugins</groupId><artifactId>git-client</artifactId><version>6.6.1</version></dependency>

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Jenkins Git client Plugin 6.6.0 and earlier does not correctly escape the workspace directory name when it is embedded into the SSH wrapper script generated by the "Manually provided keys" Git Host Key Verification strategy on Unix agents.

This allows attackers able to control the name of a build’s working directory (e.g. through a build parameter that determines the workspace directory) to inject shell command substitution and execute arbitrary commands on the agent.

This vulnerability only has an impact when attackers can control working directories (e.g., the argument to the dir(…) Pipeline step) while not being able to control the Pipeline itself or the programs or build scripts it executes.

This vulnerability has been reported through the Jenkins Bug Bounty Program sponsored by the European Commission. Git client Plugin 6.6.1 stores the known_hosts file used by the "Manually provided keys" Git Host Key Verification strategy in the system temporary directory, so the workspace directory name is no longer embedded in the path passed to the generated SSH wrapper script.

Text from GitHub Advisory Database

Affected versions 53

  • org.jenkins-ci.plugins:git-client, maven< 6.6.1GitHub
  • Jenkins Git client Pluginaffected: all versions through 6.6.0CVE List
  • org.jenkins-ci.plugins:git-client, Mavenfrom first release, fixed in 6.6.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.3OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.4OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.5OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.6OSV
  • org.jenkins-ci.plugins:git-client, Maven1.0.7OSV
  • org.jenkins-ci.plugins:git-client, Maven1.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.1.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.1.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.10.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.10.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.10.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.11.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.11.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.12.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.13.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.14.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.14.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.15.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.16.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.17.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.17.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.18.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.3OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.4OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.5OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.6OSV
  • org.jenkins-ci.plugins:git-client, Maven1.19.7OSV
  • org.jenkins-ci.plugins:git-client, Maven1.2.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.20.0-beta1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.20.0-beta2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.20.0-beta3OSV
  • org.jenkins-ci.plugins:git-client, Maven1.20.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.21.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.3.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.2OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.3OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.4OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.5OSV
  • org.jenkins-ci.plugins:git-client, Maven1.4.6OSV
  • org.jenkins-ci.plugins:git-client, Maven1.5.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.5.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.6.0OSV
  • org.jenkins-ci.plugins:git-client, Maven1.6.1OSV
  • org.jenkins-ci.plugins:git-client, Maven1.6.2OSV

References 5