GHSA-wp5x-hrrw-6r4g

Suggest an improvement
Source
https://github.com/advisories/GHSA-wp5x-hrrw-6r4g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wp5x-hrrw-6r4g/GHSA-wp5x-hrrw-6r4g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wp5x-hrrw-6r4g
Aliases
Published
2026-06-24T15:31:47Z
Modified
2026-09-25T18:15:04Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
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.

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.

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-25T18:07:21Z",
    "nvd_published_at":  "2026-06-24T14:17:34Z",
    "severity":  "MODERATE"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:git-client

Package

Name
org.jenkins-ci.plugins:git-client
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/git-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.6.1

Affected versions

1.*
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.1
1.1.1
1.1.2
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6.2.0
6.2.1
6.3.0
6.3.1
6.3.2
6.3.3
6.4.0
6.4.1
6.4.2
6.4.3
6.5.0
6.6.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wp5x-hrrw-6r4g/GHSA-wp5x-hrrw-6r4g.json"