CVE-2019-10392: Jenkins Git Client Plugin - OS Command Injection

Summary

24/05/2022
Yes i
High
8.8

CVE-2019-10392: Improper Neutralization of Special Elements used in an OS Command in Jenkins Git Client Plugin. Affects org.jenkins-ci.plugins:git-client versions < 2.8.5. Fixed in 2.8.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Jenkins Git Client Plugin is a Maven package (org.jenkins-ci.plugins:git-client) that provides functionality for interacting with Git repositories within the Jenkins automation server. It allows users to perform various Git operations, such as cloning, fetching, and pushing code. The plugin integrates Git functionality into Jenkins pipelines and jobs, enabling seamless source code management and version control.

Vulnerability Detail

The Jenkins Git Client Plugin version 2.8.4 and earlier are affected by an OS command injection vulnerability (CVE-2019-10392). This vulnerability arises due to improper neutralization of special elements used in an OS command. Specifically, the plugin fails to properly restrict values passed as URL arguments to the 'git ls-remote' command. As a result, an attacker can inject malicious commands into the URL argument, leading to arbitrary command execution on the underlying operating system. This vulnerability has a CVSS score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

How To Fix

Minimum fixed version

2.8.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the 'git ls-remote' command in the Jenkins Git Client Plugin configuration. This can be achieved by modifying the Jenkins job or pipeline configuration to avoid using the 'git ls-remote' command. However, this workaround may limit certain Git functionality and is not a permanent solution. It is strongly recommended to apply the official fix by upgrading to the latest version of the plugin.

Conclusion

The Jenkins Git Client Plugin version 2.8.4 and earlier are vulnerable to OS command injection, allowing attackers to execute arbitrary commands on the underlying operating system. To mitigate this vulnerability, it is crucial to upgrade to version 2.8.5 or later. Applying the official fix ensures that URL arguments passed to the 'git ls-remote' command are properly sanitized, preventing command injection attacks. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:git-client →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary commands on the underlying operating system, potentially leading to unauthorized access, data breaches, or further compromise of the Jenkins automation server.

No, only versions up to and including 2.8.4 are affected. The vulnerability has been fixed in version 2.8.5 and later.

No, authentication is not required. An attacker can exploit this vulnerability remotely without any authentication.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, it is advisable to apply the fix as soon as possible to mitigate any potential risks.

Yes, this vulnerability has a CVSS score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:git-client.

How To Fix

Minimum fixed version

2.8.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback