NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
💎
💎 RubyGems
Not in CISA KEV
HIGH severity

CVE-2022-25648 — git

HIGHFix: ruby-git/ruby-git#569

CVE-2022-25648 is a high-severity (CVSS 8.1) CWE-88 vulnerability in git. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for git — see the affected versions and patch details below.

Command Injection

Also known asBIT-git-2022-25648GHSA-69p6-wvmq-27ggSNYK-RUBY-GIT-2421270
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Nov 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
4.9%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs92th percentile — riskier than 92% of all scored CVEsHighest risk
3.79%4.60%5.42%6.23%4.3%4.9%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
💎git

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemsgitall versions1.11.0bundle update git --conservative

Affected Products

4 products · 6 configurations
OS
debian linuxdebian
1 version
10.0
Application
extra packages for enterprise linuxfedoraproject
1 version
8.0
OS
fedorafedoraproject
3 versions
343536
Application
gitgit
< 1.11.0
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for git, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update git to 1.11.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-25648 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatCritical

Red Hat Satellite 10 is marked as affected, as it is shipping the vulnerable code. However, the dependency is not used within the product as such, so the impact is considered as moderate. Other Red Hat Satellite versions are not delivering this dependency, so they are not vulnerable or affected at all.

ProductFixed inAdvisory
Red Hat Satellite 6.12 for RHEL 8tfm-rubygem-git-0:1.11.0-1.el8satRHSA-2022:8506

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-25648 in your dependencies?

Find it across RubyGems, including transitive dependencies.

CVE-2022-25648: git Command Injection — Fixed in 1.11.0