Arbitrary Argument Injection Affecting ruby-git package, versions <1.7.0-1+deb11u1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
4.91% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN11-RUBYGIT-2770158
  • published21 Apr 2022
  • disclosed19 Apr 2022

Introduced: 19 Apr 2022

CVE-2022-25648  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade Debian:11 ruby-git to version 1.7.0-1+deb11u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-git package and not the ruby-git package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1