GHSA-69p6-wvmq-27gg

Suggest an improvement
Source
https://github.com/advisories/GHSA-69p6-wvmq-27gg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-69p6-wvmq-27gg/GHSA-69p6-wvmq-27gg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-69p6-wvmq-27gg
Aliases
Published
2022-04-20T00:00:33Z
Modified
2024-09-11T04:57:03.397131Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command injection in ruby-git
Details

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.

References

Affected packages

RubyGems / git

Package

Name
git
Purl
pkg:gem/git

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.11.0

Affected versions

1.*

1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.1.1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.9.1
1.3.0
1.4.0
1.5.0
1.6.0.pre1
1.6.0
1.7.0
1.8.0
1.8.1
1.9.0
1.9.1
1.10.0
1.10.1
1.10.2