Advisory

GHSA-69p6-wvmq-27gg

Also known as: BIT-git-2022-25648, CVE-2022-25648, SNYK-RUBY-GIT-2421270

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-04-20 00:00 UTC
Modified
2026-07-08 06:50 UTC

Affected packages and fixes

git

RubyGems · All systems

Affected

  • introduced 0, fixed 1.11.0 (ecosystem)

Fixed versions

1.11.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences