
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-67640 is an OS command injection vulnerability (SECURITY-3614) in the Jenkins Git client Plugin affecting versions 6.4.0 and earlier. The plugin generates temporary shell scripts (e.g., for SSH_ASKPASS credential handling) that embed the workspace directory path as an unescaped command argument, enabling attackers who can control the workspace directory name to inject arbitrary OS commands on Jenkins agents. It was disclosed on December 10, 2025, as part of the Jenkins Security Advisory 2025-12-10. The CVSS v3.1 base score is 5.0 (Medium) (Jenkins Advisory, GitHub Advisory).
The root cause is improper neutralization of special elements in an OS command (CWE-78). When the Git client Plugin generates temporary shell scripts to supply credentials (e.g., via the SSH_ASKPASS mechanism), it interpolates the workspace directory path directly into a command argument without proper shell escaping. An attacker who can control the working directory name — for example, by supplying a crafted argument to the dir(…) Pipeline step — can embed shell metacharacters or commands in the directory name, which are then executed when the temporary script runs on the agent. Exploitation requires the attacker to control the working directory but not the Pipeline itself or the build scripts it executes, making this a constrained but realistic attack path in multi-tenant or shared Jenkins environments. The fix in version 6.4.1 passes the workspace path as an environment variable rather than a command argument, eliminating the injection vector (Jenkins Advisory, GitHub Advisory).
Successful exploitation allows a low-privileged authenticated attacker to execute arbitrary OS commands on Jenkins agent nodes where the vulnerable plugin is active. This can result in confidentiality loss (access to secrets, credentials, source code on the agent), integrity compromise (modification of build artifacts or scripts), and limited availability impact. The scope is confined to the agent system rather than the Jenkins controller, but agents often have access to sensitive credentials, deployment keys, and internal network resources that could facilitate lateral movement (Jenkins Advisory, GitHub Advisory).
dir(…) step arguments or workspace directory names.workspace$(malicious_command) or workspace; malicious_command #.dir(…) step with the crafted directory name, causing the Git client Plugin to generate a temporary shell script (e.g., for SSH_ASKPASS) that embeds the unescaped path.curl, wget, nc, bash -i, or other network tools not expected in normal build activity).The primary remediation is to upgrade the Jenkins Git client Plugin to version 6.4.1 or later, which passes the workspace directory path as an environment variable instead of a command argument, eliminating the injection vector. No configuration-based workaround is available; upgrading is the only supported fix. Organizations should also review Pipeline job configurations to restrict who can control the dir(…) step argument or workspace directory names as a defense-in-depth measure (Jenkins Advisory, GitHub Advisory).
The vulnerability was disclosed as part of the broader Jenkins Security Advisory 2025-12-10, which also covered high-severity issues such as a DoS in the HTTP-based CLI and a stored XSS in the Coverage Plugin. Security news outlets noted the advisory's scope, with coverage highlighting the higher-severity issues alongside CVE-2025-67640. No notable individual researcher commentary or significant social media discussion specific to this CVE has been identified (Security Online).
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."