CVE-2022-25648
JSON

8.1high

Command Injection

Severity
8.1high CVSS:3.1 by snyk
Exploit likelihood
4.59% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-69p6-wvmq-27ggBIT-GIT-2022-25648SNYK-RUBY-GIT-2421270

Description

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

Product or packageVersionsReported by
gitfrom unspecified before 1.11.0CVE List
git (RubyGems)before 1.11.0GitHub Advisory Database
git gitbefore 1.11.0NVD
fedoraproject extra_packages_for_enterprise_linux8.0NVD
fedoraproject fedora34, 35, 36NVD
debian debian_linux10.0NVD
git (Bitnami)before 1.11.0Bitnami Vulnerability Database

All scores

snyk8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

El paquete git versiones anteriores a 1.11.0, es vulnerable a una inyección de comandos por medio de una inyección de argumentos git. Cuando es llamada a la función fetch(remote = "origin", opts = {}), el parámetro remoto es pasado al subcomando git fetch de forma que pueden establecerse flags adicionales. Los flags adicionales pueden ser usados para llevar a cabo una inyección de comandos

References

https://snyk.io/vuln/SNYK-RUBY-GIT-2421270advisory, exploit, patch, third-party-advisory, web
https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0article, release-notes
https://github.com/ruby-git/ruby-git/pull/569fix, issue-tracking, patch, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R/vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2023/01/msg00043.htmladvisory, mailing-list, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2022-25648advisory, web
https://github.com/ruby-git/ruby-git/commit/291ca0946bec7164b90ad5c572ac147f512c7159web
https://github.com/ruby-git/ruby-gitpackage
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/git/CVE-2022-25648.ymlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZweb

Sources

SourceRecordLicence
CVE ListCVE-2022-25648 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-69p6-wvmq-27gg changed 2026-07-08CC-BY-4.0
NVDCVE-2022-25648 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GIT-2022-25648 changed 2026-09-08Apache-2.0