NetSight
critical9.8

CVE-2022-25648

Command injection in ruby-git

Impact

The package prior to v1.11.0 is 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 such that additional flags can be set. The additional flags can be used to perform a command injection.

Affected packages

EcosystemPackageAffectedFixed in
rubygemsgit< 1.11.01.11.0

Affected products

VendorProductAffected versions
GitGit
before 1.11.0
FedoraprojectExtra Packages For Enterprise Linux
Version 8.0
FedoraprojectFedora
Versions 34, 35, 36
DebianDebian Linux
Version 10.0

Weakness classification

References