GitHub Advisoryadvisory · RubyGems

GHSA-69p6-wvmq-27gg Command injection in ruby-git

CRITICAL Published 2022-04-20 Modified 2023-07-03 Official page ↗
Aliases
CVE-2022-25648
Ecosystem
RubyGems
Packages
git
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-88
Reviewed
2022-04-28

Affected packages

• RubyGems git: < 1.11.0 → fixed in 1.11.0

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.

Related

Alias · CVE (1)

  • CVE-2022-25648 The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. vulnerability

Weakness · CWE (1)

  • CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness

References