CVE-2022-25648 — Command injection in git — CVE Details
Command injection in ruby-git
Summary
Advisory Timeline
- First published April 20, 2022 (1637 days ago).
- Last revised July 8, 2026 — 1540 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install git -v 1.11.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| git | rubygems | 1.0.1, 1.0.2, 1.0.3, 1.0.4 (+26 more) | 1.11.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-88
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25648ADVISORY
- https://github.com/ruby-git/ruby-git/pull/569WEB
- 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.debian.org/debian-lts-announce/2023/01/msg00043.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7RWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55WEB
- https://snyk.io/vuln/SNYK-RUBY-GIT-2421270WEB
Frequently Asked Questions
- What is CVE-2022-25648?
- Command injection in ruby-git This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-25648?
- CVE-2022-25648 affects git. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-25648 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-55107CRITICAL
kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)
- CVE-2026-77602CRITICAL
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
- CVE-2022-46648HIGH
ruby-git has potential remote code execution vulnerability
- CVE-2022-47318HIGH
Code injection in ruby git
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies