{"id":"CVE-2022-25648","published":"2022-04-19T16:35:11Z","modified":"2024-09-16T17:59:47Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05467,"percentile":0.93521,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-GIT-2421270","tags":[]},{"url":"https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0","tags":[]},{"url":"https://github.com/ruby-git/ruby-git/pull/569","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html","tags":["mailing-list"]}],"priority":{"score":24.4,"factors":[{"name":"EPSS percentile","points":18.7},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"git","versions":[">= unspecified, < 1.11.0"]}],"affected":[{"ecosystem":"RubyGems","package":"git","vulnerableRanges":["<1.11.0"],"patched":["1.11.0"],"from":["GHSA-69p6-wvmq-27gg"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the git npm package (versions before 1.11.0) affecting its fetch(remote = 'origin', opts = {}) function, where the remote parameter is passed to the git fetch subcommand in a way that allows additional flags to be set. An attacker can abuse these injected flags to execute arbitrary commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:30Z"},"euvd":{"id":"EUVD-2022-1646","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-25648","published":"2022-04-19","fixed":"1.11.0","kev":false},{"cve":"CVE-2022-46648","published":"2023-01-17","fixed":"1.13.0","kev":false,"link":{"from":"CVE-2022-25648","to":"CVE-2022-46648","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:git","fromFixed":"1.11.0","toFixed":"1.13.0","daysApart":273}]}},{"cve":"CVE-2022-47318","published":"2023-01-17","fixed":"1.13.0","kev":false,"link":{"from":"CVE-2022-25648","to":"CVE-2022-47318","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:git","fromFixed":"1.11.0","toFixed":"1.13.0","daysApart":273}]}}],"package":"RubyGems:git"}}