Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.jenkins-ci.plugins/git-client
  4. ›
  5. CVE-2026-57282

CVE-2026-57282: Jenkins Git client Plugin has an OS command injection vulnerability on agents

June 24, 2026 (updated September 25, 2026)

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.

References

  • github.com/advisories/GHSA-wp5x-hrrw-6r4g
  • github.com/jenkinsci/git-client-plugin/commit/a10f61003e39fd9be6fada0560b13ba718b2716f
  • github.com/jenkinsci/git-client-plugin/releases/tag/git-client-6.6.1
  • nvd.nist.gov/vuln/detail/CVE-2026-57282
  • www.jenkins.io/security/advisory/2026-06-24/

Code Behaviors & Features

Detect and mitigate CVE-2026-57282 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.6.1

Fixed versions

  • 6.6.1

Solution

Upgrade to version 6.6.1 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/org.jenkins-ci.plugins/git-client/CVE-2026-57282.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 17 Oct 2026 00:21:55 +0000.