Git - Arbitrary Shell Command Execution via Malicious SSH URLs

git Updated 02 Oct 2025

Summary

27/08/2017
N/A
Yes i
Unrated
Not published

DLA-1068-1: git - security update. Affects git versions < 1:1.7.10.4-1+wheezy5. Fixed in 1:1.7.10.4-1+wheezy5. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Git is a distributed revision control system commonly used for source code management. It allows multiple developers to collaborate on a project by tracking changes to files and coordinating their work. Git supports various protocols for remote access, including SSH. This vulnerability affects the Debian 7 (Wheezy) version of Git.

Vulnerability Detail

The vulnerability in Git arises from its mishandling of maliciously constructed SSH URLs. An attacker can exploit this flaw by crafting a specially crafted SSH URL, which can be triggered when performing operations like cloning or updating repositories. This allows the attacker to execute arbitrary shell commands on the target system, potentially leading to unauthorized access, data manipulation, or other malicious activities.

How To Fix

Minimum fixed version

1:1.7.10.4-1+wheezy5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade git

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading the Git package to the patched version.

Conclusion

In conclusion, the Git vulnerability allows for the execution of arbitrary shell commands through malicious SSH URLs. To mitigate this risk, it is recommended to upgrade the Git package to the patched version. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for git →

Share this vulnerability

FAQ

Git is a distributed revision control system used for tracking changes in files and coordinating work among multiple developers.

This vulnerability allows an attacker to execute arbitrary shell commands on a target system by exploiting the mishandling of malicious SSH URLs in Git.

The consequences of this vulnerability can include unauthorized access, data manipulation, and other malicious activities on the affected system.

To fix this vulnerability, you should upgrade the Git package to version 1.7.10.4-1+wheezy5 or later.

No, there is no known workaround for this vulnerability. It is crucial to apply the provided fix by upgrading the Git package.

Related vulnerabilities

Recent vulnerabilities recorded for git.

How To Fix

Minimum fixed version

1:1.7.10.4-1+wheezy5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade git

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