Description
Jenkins Git client Plugin 6.6.0 and earlier does not correctly escape the workspace directory name when it is embedded into a generated SSH wrapper script, allowing attackers able to control the name of a build's working directory to execute arbitrary operating system commands on the agent.
Published: 2026-06-24
Score: 5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Jenkins Git client Plugin fails to correctly escape the workspace directory name when it is inserted into a generated SSH wrapper script, permitting an attacker who can control that name to execute arbitrary operating system commands on the build agent. The flaw is an OS command injection that creates a clear path to full agent compromise, potentially leaking or modifying data, or further spreading the attack. The attack vector is inferred to require the attacker to supply or edit a job configuration that sets a custom workspace name. By providing a malicious value, the attacker can inject shell commands that are executed on the agent. While no EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, the lack of mitigation in the plugin suggests the risk is high for environments that allow untrusted job configuration. The CVSS score is 5, indicating medium severity, but the nature of the flaw—remote code execution without additional authentication beyond job authorization—still poses a significant threat.

Affected Systems

Jenkins Project: Jenkins Git client Plugin versions 6.6.0 and earlier are affected. No other Jenkins plugins or components are listed as impacted in the current advisory.

Risk and Exploitability

The vulnerability’s exploitation relies on an attacker’s ability to influence the workspace directory name. Although no exact exploitation probability is reported, the missing EPSS metric and absence from KEV imply that active exploitation is not widespread yet, but the potential for remote code execution is significant. The CVSS score of 5 reflects moderate severity, yet the possibility for remote code execution remains high. The plugin’s failure to escape input provides a straightforward command injection path for an attacker who can alter job settings.

Generated by OpenCVE AI on June 24, 2026 at 15:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Jenkins Git client Plugin to a version newer than 6.6.0
  • Restrict job configuration permissions to prevent manipulation of workspace directory names
  • Enforce a whitelist of allowed characters for custom workspace names or sanitize the input before use

Generated by OpenCVE AI on June 24, 2026 at 15:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Jenkins Project
Jenkins Project jenkins Git Client Plugin
Vendors & Products Jenkins Project
Jenkins Project jenkins Git Client Plugin

Wed, 24 Jun 2026 15:00:00 +0000

Type Values Removed Values Added
Title Unescaped Workspace Name Enables Arbitrary OS Command Execution on Jenkins Agent

Wed, 24 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 24 Jun 2026 13:45:00 +0000

Type Values Removed Values Added
Description Jenkins Git client Plugin 6.6.0 and earlier does not correctly escape the workspace directory name when it is embedded into a generated SSH wrapper script, allowing attackers able to control the name of a build's working directory to execute arbitrary operating system commands on the agent.
References

Subscriptions

Jenkins Project Jenkins Git Client Plugin
cve-icon MITRE

Status: PUBLISHED

Assigner: jenkins

Published:

Updated: 2026-06-24T14:00:22.243Z

Reserved: 2026-06-24T08:41:44.357Z

Link: CVE-2026-57282

cve-icon Vulnrichment

Updated: 2026-06-24T14:00:18.612Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T20:41:16Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')