{"id":"CVE-2022-25648","aliases":["BIT-git-2022-25648","GHSA-69p6-wvmq-27gg","SNYK-RUBY-GIT-2421270"],"url":"https://o3.security/vulnerability/CVE-2022-25648","summary":"Command Injection","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.","published":"2022-04-19T16:35:11.215Z","modified":"2026-09-08T03:45:10.207501913Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"RubyGems","name":"git","fixedVersion":"1.11.0"}],"fix":{"url":"https://github.com/ruby-git/ruby-git/pull/569","label":"ruby-git/ruby-git#569"},"references":[{"type":"WEB","url":"https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25648.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25648"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-RUBY-GIT-2421270"},{"type":"FIX","url":"https://github.com/ruby-git/ruby-git/pull/569"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html"},{"type":"WEB","url":"https://github.com/ruby-git/ruby-git/commit/291ca0946bec7164b90ad5c572ac147f512c7159"},{"type":"PACKAGE","url":"https://github.com/ruby-git/ruby-git"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/git/CVE-2022-25648.yml"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-08T03:45:10.207501913Z"}}