{"id":"CVE-2022-25648","aliases":["CVE-2022-25648","GHSA-69p6-wvmq-27gg","BIT-GIT-2022-25648","SNYK-RUBY-GIT-2421270"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-04-19T16:35:11.215Z","modified":"2026-09-08T08:47:33.436Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.11.0","status":"affected"}],"product":"git","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.0"}],"ecosystem":"RubyGems","package":"git","purl":"pkg:gem/git","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.11.0"}],"vendor":"git","product":"git","cpe":"cpe:2.3:a:git:git:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux","cpe":"cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.0"}],"ecosystem":"Bitnami","package":"git","purl":"pkg:bitnami/git","source":"bitnami"}],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-GIT-2421270","tags":["advisory","exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0","tags":["article","release-notes","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/ruby-git/ruby-git/pull/569","tags":["fix","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25648","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/ruby-git/ruby-git/commit/291ca0946bec7164b90ad5c572ac147f512c7159","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby-git/ruby-git","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/git/CVE-2022-25648.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25648","url":"https://www.cve.org/CVERecord?id=CVE-2022-25648","licence":"CVE Terms of Use","modified":"2024-09-16T17:59:47.353Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-69p6-wvmq-27gg","url":"https://github.com/advisories/GHSA-69p6-wvmq-27gg","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:03.497Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25648","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25648","licence":"Public domain","modified":"2026-06-17T04:33:50.050Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GIT-2022-25648","url":"https://osv.dev/vulnerability/BIT-GIT-2022-25648","licence":"Apache-2.0","modified":"2026-09-08T08:47:33.436Z"}],"updatedAt":"2026-11-25T22:58:10.833Z","epss":{"score":0.04593,"percentile":0.91846,"date":"2026-12-01T12:00:22.000Z"}}