All reports
Critical

Command injection in ruby-git

Affected versions

RubyGemsgit
Affected versions
< 1.11.0
Fixed version
1.11.0

Exploitation

CVE-2022-25648

Probability of exploitation in the next 30 days: 4.59%

FIRST EPSS · 2026-11-20

Description

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.

Links