CVE-2022-25648 Command Injection
CriticalCVSS 9.8
EPSS 4.6%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
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.
Upgrade path
16 packages: 5 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-git(Ubuntu 16.04) | = 1.2.8-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 18.04) | = 1.2.8-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 20.04) | = 1.2.8-1; = 1.6.0+0-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 22.04) | = 1.7.0-1; = 1.9.1-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 24.04) | = 1.13.1-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 25.10) | = 1.13.1-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 26.04) | = 1.13.1-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-git(Ubuntu 26.10) | = 1.13.1-1; = 4.3.2-1; = 4.4.0-1; All versions | No fix listed | No fix yet |
| debian/ruby-git(Debian 12) | < 1.13.1-1 | 1.13.1-1 | Fixed |
| debian/ruby-git(Debian 13) | < 1.13.1-1 | 1.13.1-1 | Fixed |
| debian/ruby-git(Debian 14) | < 1.13.1-1 | 1.13.1-1 | Fixed |
| git | < 1.11.0 | 1.11.0 | Fixed |
| rubygems git(RubyGems) | < 1.11.0; = 1.0.1; = 1.0.2; = 1.0.3 +27 more | 1.11.0 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| fedoraproject extra packages for enterprise linux | = 8.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 34; = 35; = 36 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems git(RubyGems) | < 1.11.0 | 1.11.0 |
| rubygems git(RubyGems) | = 1.0.1 | No fix listed |
| rubygems git(RubyGems) | = 1.0.2 | No fix listed |
| rubygems git(RubyGems) | = 1.0.3 | No fix listed |
| rubygems git(RubyGems) | = 1.0.4 | No fix listed |
| rubygems git(RubyGems) | = 1.0.5 | No fix listed |
| rubygems git(RubyGems) | = 1.1.1 | No fix listed |
| rubygems git(RubyGems) | = 1.10.0 | No fix listed |
| rubygems git(RubyGems) | = 1.10.1 | No fix listed |
| rubygems git(RubyGems) | = 1.10.2 | No fix listed |
| rubygems git(RubyGems) | = 1.2.0 | No fix listed |
| rubygems git(RubyGems) | = 1.2.1 | No fix listed |
| rubygems git(RubyGems) | = 1.2.2 | No fix listed |
| rubygems git(RubyGems) | = 1.2.3 | No fix listed |
| rubygems git(RubyGems) | = 1.2.4 | No fix listed |
| rubygems git(RubyGems) | = 1.2.5 | No fix listed |
| rubygems git(RubyGems) | = 1.2.6 | No fix listed |
| rubygems git(RubyGems) | = 1.2.7 | No fix listed |
| rubygems git(RubyGems) | = 1.2.8 | No fix listed |
| rubygems git(RubyGems) | = 1.2.9 | No fix listed |
| rubygems git(RubyGems) | = 1.2.9.1 | No fix listed |
| rubygems git(RubyGems) | = 1.3.0 | No fix listed |
| rubygems git(RubyGems) | = 1.4.0 | No fix listed |
| rubygems git(RubyGems) | = 1.5.0 | No fix listed |
| rubygems git(RubyGems) | = 1.6.0 | No fix listed |
Show 35 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems git(RubyGems) | = 1.6.0.pre1 | No fix listed |
| rubygems git(RubyGems) | = 1.7.0 | No fix listed |
| rubygems git(RubyGems) | = 1.8.0 | No fix listed |
| rubygems git(RubyGems) | = 1.8.1 | No fix listed |
| rubygems git(RubyGems) | = 1.9.0 | No fix listed |
| rubygems git(RubyGems) | = 1.9.1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:22.04) | All versions | No fix listed |
| git | < 1.11.0 | 1.11.0 |
| fedoraproject extra packages for enterprise linux | = 8.0 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| ubuntu/ruby-git(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.10) | All versions | No fix listed |
| debian/ruby-git(Debian:12) | < 1.13.1-1 | 1.13.1-1 |
| debian/ruby-git(Debian:14) | < 1.13.1-1 | 1.13.1-1 |
| debian/ruby-git(Debian:13) | < 1.13.1-1 | 1.13.1-1 |
| ubuntu/ruby-git(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:16.04) | = 1.2.8-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:18.04) | = 1.2.8-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:20.04) | = 1.2.8-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:20.04) | = 1.6.0+0-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:22.04) | = 1.7.0-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:22.04) | = 1.9.1-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:24.04) | = 1.13.1-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/ruby-git(Ubuntu:25.10) | = 1.13.1-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.10) | = 1.13.1-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.10) | = 4.3.2-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.10) | = 4.4.0-1 | No fix listed |
| ubuntu/ruby-git(Ubuntu:26.04) | = 1.13.1-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- snyk.io exploit issue-tracking patch third-party-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3303-1] ruby-git security update mailing-list third-party-advisory
- github.com exploit
- github.com patch
- github.com
- github.com product
- Debian Security Tracker CVE-2022-25648 vendor-advisory
- github.com issue-tracking release-notes
- FEDORA-2022-353e1cf8b6 vendor-advisory
- FEDORA-2022-f09e0d8b0e vendor-advisory
- FEDORA-2022-1aa40056fc vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking