CVE-2026-57282: Git client Jenkins Git Client Plugin Has Vulnerability

MODERATE
Advisory Identifier: GHSA-wp5x-hrrw-6r4g
CVSS 5.0
CWE-78
Published
Advisory Summary

CVE-2026-57282 is a MODERATE (CVSS 5.0) jenkins git client plugin has vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Git client libraries in the Maven ecosystem. The issue involves jenkins git client plugin has an os command injection vulnerability on agents. Remediation is available by upgrading affected packages to version 6.6.1.

CVE-2026-57282 at a Glance

CVE Identifier CVE-2026-57282
GHSA Identifier GHSA-wp5x-hrrw-6r4g
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Git client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-57282

To remediate this vulnerability, upgrade all affected Git client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jenkins-ci.plugins:git-client fixed: 6.6.1
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>git-client</artifactId>
    <version>6.6.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-57282, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

Analyze the terminal output to locate any version of Git client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.6.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Git client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-57282 Affected Git client Versions

1 component(s)
Fixed Versions:
6.6.1
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:git-client
Maven
< 6.6.1
6.6.1

References

Frequently Asked Questions

What is CVE-2026-57282?
CVE-2026-57282 is a security vulnerability in Git client involving Jenkins Git client Plugin has an OS command injection vulnerability on agents under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Git client versions are affected?
Affected versions include releases prior to 6.6.1 across affected packages: org.jenkins-ci.plugins:git-client.
What version fixes CVE-2026-57282?
Upgrading to 6.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is git-client affected?
Yes, org.jenkins-ci.plugins:git-client is affected in releases prior to 6.6.1. Upgrade your dependency to 6.6.1 or later.
What is the CVSS score of CVE-2026-57282?
CVE-2026-57282 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-57282?
CVE-2026-57282 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2026-57282?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wp5x-hrrw-6r4g",
  "modified" : "2026-09-25T18:07:21Z",
  "published" : "2026-06-24T15:31:47Z",
  "aliases" : [ "CVE-2026-57282" ],
  "summary" : "Jenkins Git client Plugin has an OS command injection vulnerability on agents",
  "details" : "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.\n\nThis 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.\n\nThis 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.\n\nThis vulnerability has been reported through the Jenkins Bug Bounty Program sponsored by the European Commission.\nGit 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:git-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-57282"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/git-client-plugin/commit/a10f61003e39fd9be6fada0560b13ba718b2716f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/git-client-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/git-client-plugin/releases/tag/git-client-6.6.1"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2026-06-24/#SECURITY-3723"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-25T18:07:21Z",
    "nvd_published_at" : "2026-06-24T14:17:34Z"
  }
}