{"id":"CVE-2026-57282","aliases":["GHSA-wp5x-hrrw-6r4g"],"title":"Jenkins Git client Plugin has an OS command injection vulnerability on agents","summary":"Jenkins Git client Plugin has an OS command injection vulnerability on agents","severity":"medium","cvss":5,"cwe":["CWE-78"],"vendor":"jenkins-ci","product":"org.jenkins-ci.plugins:git-client","ecosystem":"maven","affected":["org.jenkins-ci.plugins:git-client < 6.6.1"],"patched":["org.jenkins-ci.plugins:git-client 6.6.1"],"published":"2026-06-24","updated":"2026-09-25","sourceUpdated":"2026-09-25T18:07:21Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-wp5x-hrrw-6r4g","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57282"},{"url":"https://www.jenkins.io/security/advisory/2026-06-24/#SECURITY-3723"},{"url":"https://github.com/jenkinsci/git-client-plugin/commit/a10f61003e39fd9be6fada0560b13ba718b2716f"},{"url":"https://github.com/jenkinsci/git-client-plugin/releases/tag/git-client-6.6.1"},{"url":"https://github.com/advisories/GHSA-wp5x-hrrw-6r4g"}],"tags":["ghsa","maven"],"epss":0.00253,"epssPercentile":0.14937,"ingestedAt":"2026-09-25T18:14:20.393Z","slug":"CVE-2026-57282","body":"## Overview\n\nJenkins 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.\n\n## Affected packages\n\n- `org.jenkins-ci.plugins:git-client < 6.6.1`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `org.jenkins-ci.plugins:git-client 6.6.1`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}