CVEfocus › CVE database › CVE-2022-25648

CVE-2022-25648Command Injection

CVSS 8.1 HighEPSS 5.5% (higher than 94% of CVEs)Published 2022-04-19Updated 2024-09-16Assigner: snyk

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.

What to do

Fixed builds are available from Debian, Rocky Linux, RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
3Under investigation
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ruby-gitFix pendingUBUNTU-CVE-2022-25648
Ubuntu 26.04ruby-gitUnder investigationUBUNTU-CVE-2022-25648
Ubuntu 25.10ruby-gitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-25648
Ubuntu 24.04ruby-gitUnder investigationUBUNTU-CVE-2022-25648
Ubuntu 22.04ruby-gitUnder investigationUBUNTU-CVE-2022-25648
Ubuntu 20.04ruby-gitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-25648
Ubuntu 18.04ruby-gitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-25648
Ubuntu 16.04ruby-gitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-25648
Ubuntu 14.04ruby-gitWill not fix
Ubuntu decided not to fix this in this release
Debian 14ruby-gitFixed1.13.1-1DEBIAN-CVE-2022-25648
Debian 13ruby-gitFixed1.13.1-1DEBIAN-CVE-2022-25648
Debian 12ruby-gitFixed1.13.1-1DEBIAN-CVE-2022-25648
Rocky Linux 8libdbFixed0:5.3.28-42.el8_4RLSA-2022:8506
RubyGems librarygitFixed1.11.0GHSA-69p6-wvmq-27gg

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.