# CVE-2026-57282: Jenkins Git client Plugin OS command injection in SSH wrapper script

Source: https://junglewise.ai/threats/cve-2026-57282-jenkins-git-client-plugin-os-command-injection-in-ssh-wrapper  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-24. Updated: 2026-06-24  
License: CC BY 4.0 with a link back

CVE-2026-57282 · Severity: medium · CVSS 5 · Published 2026-06-24

The Jenkins Git client plugin, which manages Git operations for automation workflows, contains a security flaw in how it handles workspace folder names. If an attacker can influence the name of a build's working directory, they can trick the system into running unauthorized commands on the underlying server (agent). This could lead to a full compromise of the build environment and unauthorized access to sensitive data or internal systems.

Technologies: [org.jenkins-ci.plugins:git-client (Maven)](https://junglewise.ai/threats/technologies/org-jenkins-ci-plugins-git-client). Vendors: [Jenkins Project](https://junglewise.ai/threats/vendors/jenkins-project), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-57282 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-57282 being exploited in the wild.

**How severe is CVE-2026-57282?** Medium severity, with a CVSS score of 5, published 24 June 2026.

**Which products and versions are affected?** Jenkins Project Git client Plugin 6.6.0 and earlier; org.jenkins-ci.plugins:git-client (Maven) < 6.6.1, ECOSYSTEM:introduced=0,fixed=6.6.1.

**Is there a fix for CVE-2026-57282?** Yes. org.jenkins-ci.plugins:git-client (Maven): upgrade to 6.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-57282 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-57282?** Check whether you run Jenkins Project Git client Plugin or org.jenkins-ci.plugins:git-client (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.jenkins-ci.plugins:git-client (Maven): upgrade to 6.6.1 or later

  ```sh
  # set org.jenkins-ci.plugins:git-client to 6.6.1 in your pom.xml or build.gradle
  ```


## Technical details

An OS command injection vulnerability exists in the Jenkins Git client Plugin (version 6.6.0 and earlier) within the 'Manually provided keys' Git Host Key Verification strategy. The plugin fails to correctly escape the workspace directory name when embedding it into a generated SSH wrapper script on Unix-based agents. An attacker who can control the name of a build's working directory (for example, via a build parameter used in a 'dir(...)' Pipeline step) can inject shell command substitutions. This allows for arbitrary command execution on the Jenkins agent. The vulnerability is mitigated if the attacker cannot control the workspace name or the Pipeline script itself. The fix in version 6.6.1 moves the known_hosts file to a system temporary directory, removing the workspace path from the SSH wrapper script.

## Affected products

- Jenkins Project Git client Plugin 6.6.0 and earlier

## Identifiers

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

## Timeline

- 2026-06-24: disclosed
- 2026-06-24: advisory
- 2026-06-24: patched: Fixed in version 6.6.1

## References

- [https://www.jenkins.io/security/advisory/2026-06-24/](https://www.jenkins.io/security/advisory/2026-06-24/)

## Related threats

- [Jenkins Git client Plugin has an OS command injection vulnerability on agents in Git client Plugin](https://junglewise.ai/threats/cve-2025-67640-jenkins-git-client-plugin-has-an-os-command-injection)
- [Jenkins Git client Plugin file system information disclosure vulnerability](https://junglewise.ai/threats/cve-2025-58458-jenkins-git-client-plugin-file-system-information-disclosure)
- [Jenkins Git client plugin 3.11.0 does not perform SSH host key verification](https://junglewise.ai/threats/cve-2022-36881-jenkins-git-client-plugin-3-11-0-does-not-perform-ssh-host-key)
- [Improper Neutralization of Special Elements used in an OS Command in Jenkins Git Client Plugin](https://junglewise.ai/threats/cve-2019-10392-improper-neutralization-of-special-elements-used-in-an-os-command)
- [Insecure temporary file usage in Jenkins Git Client Plugin](https://junglewise.ai/threats/cve-2017-1000242-insecure-temporary-file-usage-in-jenkins-git-client-plugin)
