cbcvebase.
CVE-2022-25648
published 2022-04-19

CVE-2022-25648: The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function…

PriorityP264critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
4.61%
90.5th percentile
The package git before 1.11.0 are 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 that additional flags can be set. The additional flags can be used to perform a command injection.

Affected

13 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debianruby-git< ruby-git 1.13.1-1 (bookworm)ruby-git 1.13.1-1 (bookworm)
fedoraprojectextra_packages_for_enterprise_linux
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
gitgit< 1.11.01.11.0
gitgit>= 0 < 1.11.01.11.0
gitgit>= unspecified < 1.11.01.11.0
ruby-gitruby-git>= 0 < 1.7.0-1+deb11u11.7.0-1+deb11u1
ruby-gitruby-git>= 0 < 1.13.1-11.13.1-1
ruby-gitruby-git>= 0 < 1.13.1-11.13.1-1
ruby-gitruby-git>= 0 < 1.13.1-11.13.1-1

Detection & IOCsextracted from sources · hover to see the quote

  • Command injection occurs when the `remote` parameter of the `fetch(remote = 'origin', opts = {})` function is passed unsanitized to the `git fetch` subcommand, allowing injection of additional git flags.
  • Monitor for invocations of `git fetch` with unexpected flag-like arguments (e.g., strings beginning with `-`) supplied as the remote parameter, which may indicate exploitation of this argument injection vulnerability.
  • ·Only ruby-git (gem `git`) versions before 1.11.0 are vulnerable; upgrade to 1.11.0 or later to remediate.
  • ·Red Hat Satellite 10 ships the vulnerable ruby-git code but does not actively use the affected dependency within the product, reducing practical exploitability in that context.
  • ·Debian fixed versions differ by release: bullseye fixed in 1.7.0-1+deb11u1; bookworm/sid/trixie/forky fixed in 1.13.1-1.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian8.1HIGH
vendor_redhat8.1HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.