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

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). Vendors: Jenkins Project, 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
    # 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.