Skip to main content
Vulnerability Database/CVE-2025-58458

CVE-2025-58458: Jenkins Git Client Information Disclosure

CVE-2025-58458 is an information disclosure vulnerability in Jenkins Git Client Plugin that allows attackers to check for file existence on the controller. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-58458 Overview

CVE-2025-58458 affects the Jenkins Git client Plugin version 6.3.2 and earlier, excluding patched releases 6.1.4 and 6.2.1. The vulnerability resides in the Git URL field form validation logic. When a user specifies the amazon-s3 protocol for use with JGit, the plugin returns different responses depending on whether the specified file path exists on the Jenkins controller file system. Attackers with Overall/Read permission can abuse this behavior to probe the controller file system for arbitrary paths. The flaw is categorized as information exposure under [CWE-200].

Critical Impact

Authenticated attackers can enumerate files on the Jenkins controller file system by submitting crafted Git URL form validation requests.

Affected Products

  • Jenkins Git client Plugin versions up to and including 6.3.2
  • Jenkins Git client Plugin 6.2.0 (explicitly listed in CPE data)
  • Fixed releases: 6.1.4 and 6.2.1 are not vulnerable

Discovery Timeline

  • 2025-09-03 - Jenkins publishes security advisory SECURITY-3590
  • 2025-09-03 - CVE-2025-58458 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-58458

Vulnerability Analysis

The Jenkins Git client Plugin provides form validation for the Git URL field used throughout Jenkins job configurations. When a user supplies a URL with the amazon-s3 scheme intended for JGit, the plugin invokes server-side validation on the Jenkins controller. The validation response diverges based on whether the referenced path exists on the controller file system. An attacker holding only Overall/Read permission can submit repeated form validation requests with varying paths and infer file existence from the differing responses. This behavior transforms a benign validation endpoint into a file system oracle usable for reconnaissance of credentials files, configuration data, or secret material staged on the controller.

Root Cause

The root cause is improper handling of validation output for the amazon-s3 protocol code path. The plugin surfaces internal file system state in validation responses instead of returning a uniform error message. This constitutes an information exposure weakness as classified by [CWE-200].

Attack Vector

Exploitation requires network access to the Jenkins web interface and an authenticated account with Overall/Read permission, which is commonly granted. The attacker triggers Git URL form validation requests through the Jenkins UI or by directly calling the validation endpoint. By comparing response differences, the attacker identifies which paths exist on the controller. See the Jenkins Security Advisory #SECURITY-3590 for additional detail.

Detection Methods for CVE-2025-58458

Indicators of Compromise

  • Repeated form validation requests to Jenkins endpoints referencing Git URLs with the amazon-s3 scheme from a single authenticated user
  • Unusual volume of doCheckUrl or similar Git client plugin descriptor validation calls in Jenkins access logs
  • Low-privileged accounts with Overall/Read permission issuing high rates of Git URL validation requests

Detection Strategies

  • Review Jenkins access logs for /descriptorByName/ requests tied to the Git client plugin and the Git URL check endpoint
  • Correlate authentication events for Overall/Read-only accounts against form validation traffic patterns
  • Alert on anomalous POST request volume from non-administrative Jenkins users to plugin descriptor endpoints

Monitoring Recommendations

  • Enable verbose Jenkins access logging and ship logs to a centralized SIEM for retention and querying
  • Baseline normal form validation activity per user to surface outliers that may indicate path probing
  • Audit the Jenkins user permission matrix regularly to limit who holds Overall/Read permission

How to Mitigate CVE-2025-58458

Immediate Actions Required

  • Upgrade the Jenkins Git client Plugin to a fixed release line (6.1.4, 6.2.1, or a version later than 6.3.2 that includes the fix)
  • Review Jenkins authorization settings and restrict Overall/Read permission to trusted users
  • Audit Jenkins controller file system contents for sensitive files that should be relocated off the controller

Patch Information

Jenkins addressed the issue in the Git client Plugin via the maintenance releases referenced in Jenkins Security Advisory #SECURITY-3590. Administrators should install the patched plugin version through the Jenkins Update Center. Additional disclosure context is available in the OpenWall OSS Security Update.

Workarounds

  • Remove or disable the Git client Plugin on controllers where it is not required
  • Tighten the Jenkins authorization strategy so anonymous and low-privileged users do not hold Overall/Read permission
  • Isolate the Jenkins controller behind network controls that restrict web UI access to known administrators

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.