CVE-2022-25648
published high CVSS 3.1 · 8.1Command Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | gitunspecified to < 1.11.0 | Affected | Not stated | snyk |
| Debian | bullseye | ruby-git | Advisory build | 1.7.0-1+deb11u1 | DLA-4406-1 |
| Ubuntu | bionic | ruby-git | Advisory build | 1.2.8-1ubuntu0.18.04.1~esm1 | USN-9266-1 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:8506 |
| Debian | buster | ruby-git | Advisory build | 1.2.8-1+deb10u1 | DLA-3303-1 |
| Ubuntu | focal | ruby-git | Advisory build | 1.6.0+0-1ubuntu0.1~esm1 | USN-9266-1 |
| Ubuntu | jammy | ruby-git | Advisory build | 1.9.1-1ubuntu0.1~esm1 | USN-9266-1 |
| Ubuntu | xenial | ruby-git | Advisory build | 1.2.8-1ubuntu0.16.04.1~esm1 | USN-9266-1 |
Show 7 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | git | unspecified to < 1.11.0 (affected · custom) | snyk · cna |
Weaknesses
1- Command Injection
References
7- https://github.com/ruby-git/ruby-git/pull/569
- https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3303-1] ruby-git security update https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html
- FEDORA-2022-f09e0d8b0e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTJUF6SFPL4ZVSJQHGQ36KFPFO5DQVYZ/
- FEDORA-2022-1aa40056fc https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q2V3HOFU4ZVTQZHAVAVL3EX2KU53SP7R/
- FEDORA-2022-353e1cf8b6 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNJA7WPE67LJ3DJMWZ2TADHCZKWMY55/
- https://snyk.io/vuln/SNYK-RUBY-GIT-2421270
Provider assertions
2snyk · cna
Command Injection
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 29c4fdcfd58ee5c3a77f77b26e0db492c2ac32f0d02c4020a8f53cd6449987b5
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record