Vulnerability · Published Apr 19, 2022 · Assigned by snyk

CVE-2022-25648Command Injection

High 8.1

In plain English

A high-severity security flaw in git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.9% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)4.9%top 7.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function, the remote parameter is passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-git1.13.1-1DEBIAN-CVE-2022-25648
Debian:13ruby-git1.13.1-1DEBIAN-CVE-2022-25648
Debian:14ruby-git1.13.1-1DEBIAN-CVE-2022-25648
Rocky Linux:8libdb0:5.3.28-42.el8_4RLSA-2022:8506
RubyGemsgit1.11.0GHSA-69p6-wvmq-27gg
Ubuntu:22.04:LTSruby-gitno fix listedUBUNTU-CVE-2022-25648
Ubuntu:24.04:LTSruby-gitno fix listedUBUNTU-CVE-2022-25648
Ubuntu:25.10ruby-gitno fix listedUBUNTU-CVE-2022-25648
Ubuntu:26.04:LTSruby-gitno fix listedUBUNTU-CVE-2022-25648
Ubuntu:26.10ruby-gitno fix listedUBUNTU-CVE-2022-25648

Affected products (as reported)

VendorProductVersions
n/a git unspecified – before 1.11.0

References