CVE-2025-67640: Git client Jenkins Git Client Plugin Has Vulnerability
MODERATECVE-2025-67640 is a MODERATE (CVSS 5.0) jenkins git client plugin has vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Git client libraries in the Maven ecosystem. The issue involves jenkins git client plugin has an os command injection vulnerability on agents in git client plugin. Remediation is available by upgrading affected packages to version 6.4.1.
CVE-2025-67640 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-67640
To remediate this vulnerability, upgrade all affected Git client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git-client</artifactId>
<version>6.4.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-67640, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins
Analyze the terminal output to locate any version of Git client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Git client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67640 Affected Git client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jenkins-ci.plugins:git-client
|
Maven |
< 6.4.1
|
6.4.1
|
References
Frequently Asked Questions
What is CVE-2025-67640?
Which Git client versions are affected?
What version fixes CVE-2025-67640?
Is git-client affected?
What is the CVSS score of CVE-2025-67640?
What CWE is associated with CVE-2025-67640?
How can I check Maven dependencies for CVE-2025-67640?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v8hg-m323-jvjq",
"modified" : "2025-12-10T20:14:28Z",
"published" : "2025-12-10T18:30:26Z",
"aliases" : [ "CVE-2025-67640" ],
"summary" : "Jenkins Git client Plugin has an OS command injection vulnerability on agents in Git client Plugin",
"details" : "Jenkins Git client Plugin 6.4.0 and earlier does not not correctly escape the path to the workspace directory as part of an argument in a temporary shell script generated by the plugin, allowing attackers able to control the workspace directory name to inject arbitrary OS commands.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jenkins-ci.plugins:git-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67640"
}, {
"type" : "WEB",
"url" : "https://github.com/jenkinsci/git-client-plugin/commit/5a271e5d1d08bd45cdb3c3541856d2dc2abf0dbc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jenkinsci/git-client-plugin"
}, {
"type" : "WEB",
"url" : "https://www.jenkins.io/security/advisory/2025-12-10/#SECURITY-3614"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-10T20:14:28Z",
"nvd_published_at" : "2025-12-10T17:15:56Z"
}
}