# CVE-2022-25648: Command Injection

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.59%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-19T16:35:11.215Z
- Modified: 2026-09-08T08:47:33.436Z
- Also known as: GHSA-69p6-wvmq-27gg, BIT-GIT-2022-25648, SNYK-RUBY-GIT-2421270
- Weaknesses: CWE-88
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- git: from unspecified before 1.11.0
- git (RubyGems): before 1.11.0
- git git: before 1.11.0
- fedoraproject extra_packages_for_enterprise_linux: 8.0
- fedoraproject fedora: 34; 35; 36
- debian debian_linux: 10.0
- git (Bitnami): before 1.11.0

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://snyk.io/vuln/SNYK-RUBY-GIT-2421270> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0> (article, release-notes)
- <https://github.com/ruby-git/ruby-git/pull/569> (fix, 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.html> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25648> (advisory, web)
- <https://github.com/ruby-git/ruby-git/commit/291ca0946bec7164b90ad5c572ac147f512c7159> (web)
- <https://github.com/ruby-git/ruby-git> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/git/CVE-2022-25648.yml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55> (web)

## Sources

- CVE List: [CVE-2022-25648](https://www.cve.org/CVERecord?id=CVE-2022-25648), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-69p6-wvmq-27gg](https://github.com/advisories/GHSA-69p6-wvmq-27gg), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-25648](https://nvd.nist.gov/vuln/detail/CVE-2022-25648), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GIT-2022-25648](https://osv.dev/vulnerability/BIT-GIT-2022-25648), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-25648 · Whole record: https://cve.day/CVE-2022-25648.json · Rebuilt by cve.day 2026-11-25T22:58:10.833Z
