CVE-2026-57282
Jenkins Git client Plugin has an OS command injection vulnerability on agents
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » git-client | < 6.6.1 | 6.6.1 |
Blast radius
76% of the dependent artifacts (216) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5,326 |
| 2 hops | 15,781 |
| 3 hops | 8,312 |
| 4 hops | 1,030 |
| 5 hops | 400 |
| 6 hops | 17 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-cps439 usages
- org.jenkins-ci.plugins » git227 usages
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkins-ci.plugins.workflow » workflow-multibranch110 usages
- org.jenkins-ci.plugins.workflow » workflow-scm-step104 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jenkins-ci.plugins » subversion58 usages
- org.jenkins-ci.plugins » github-branch-source48 usages
- org.jenkins-ci.plugins.workflow » workflow-cps-global-lib25 usages
- com.coravy.hudson.plugins.github » github22 usages
- org.jvnet.hudson.plugins » analysis-test22 usages
- org.jenkins-ci.plugins » cloudbees-bitbucket-branch-source21 usages
- org.jenkinsci.plugins » pipeline-model-extensions18 usages
- io.jenkins.blueocean » blueocean-rest-impl12 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-57282 | nvd.nist.gov |
| Package | jenkinsci/git-client-plugin | github.com |
| Web | jenkinsci/git-client-plugin commit a10f610 | github.com |
| Web | jenkinsci/git-client-plugin release git-client-6.6.1 | github.com |
| Web | security/advisory/2026-06-24 | jenkins.io |
