
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-57282 is an OS command injection vulnerability in the Jenkins Git client Plugin (tracked as SECURITY-3723) that allows attackers who can control a build's working directory name to execute arbitrary operating system commands on Jenkins agents. It affects Git client Plugin versions 6.6.0 and earlier, specifically when the "Manually provided keys" Git Host Key Verification strategy is used on Unix agents. The vulnerability was disclosed on June 24, 2026, as part of a broader Jenkins security advisory. It carries a CVSS v3.1 base score of 5.0 (Medium) (Jenkins Advisory, GitHub Advisory).
The root cause is improper neutralization of special elements in an OS command (CWE-78). The Git client Plugin embeds the workspace directory name directly into an SSH wrapper script generated by the "Manually provided keys" Git Host Key Verification strategy on Unix agents, without properly escaping shell metacharacters. An attacker who can influence the name of a build's working directory — for example, via a build parameter that controls the argument to the dir(…) Pipeline step — can inject shell command substitution sequences (e.g., $(command) or backtick expressions) into the directory name, causing arbitrary commands to execute on the agent when the SSH wrapper script is invoked. Exploitation is constrained to scenarios where the attacker controls the working directory name but does not already control the Pipeline script or the build scripts it executes (Jenkins Advisory).
Successful exploitation allows an attacker to execute arbitrary OS commands on the Jenkins build agent running the affected job, with the privileges of the Jenkins agent process. This can lead to partial compromise of confidentiality, integrity, and availability on the agent node — including exfiltration of secrets accessible to the agent, modification of build artifacts, or disruption of build processes. The impact is scoped to the agent and does not directly affect the Jenkins controller, but lateral movement from a compromised agent to other systems in the build environment is possible (Jenkins Advisory, GitHub Advisory).
workspace$(malicious_command) or using backtick syntax, designed to execute a payload when interpreted by the shell.dir(…) Pipeline step argument), ensuring the "Manually provided keys" SSH wrapper script generation is triggered.sh, bash, curl, wget, python) with workspace directory names containing shell metacharacters ($, `, (, )).Update the Jenkins Git client Plugin to version 6.6.1 or later, which resolves the vulnerability by storing the known_hosts file used by the "Manually provided keys" strategy in the system temporary directory, so the workspace directory name is no longer embedded in the SSH wrapper script path. As a workaround where immediate upgrade is not possible, avoid using the "Manually provided keys" Git Host Key Verification strategy on Unix agents, or restrict the ability of untrusted users to control workspace directory names via build parameters. Administrators should also audit Pipeline jobs for use of the dir(…) step with user-controlled inputs (Jenkins Advisory).
The vulnerability was disclosed as part of a large Jenkins security advisory on June 24, 2026, covering over 20 CVEs across multiple plugins. Security coverage aggregators such as CyberPress and VulDB noted the advisory, and the issue was picked up by the oss-security mailing list. No notable individual researcher commentary or significant social media discussion specific to CVE-2026-57282 has been identified beyond standard advisory syndication (Jenkins Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."