CVE-2022-25866
published high CVSS 3.1 · 8.1Command Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | czproject/git-phpunspecified to < 4.0.3 | Affected | Not stated | snyk |
Description
The package czproject/git-php before 4.0.3 are vulnerable to Command Injection via git argument injection. When calling the isRemoteUrlReadable($url, array $refs = NULL) function, both the url and refs parameters are passed to the git ls-remote 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.
No linked advisories were found for 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 | czproject/git-php | unspecified to < 4.0.3 (affected · custom) | snyk · cna |
Weaknesses
1- Command Injection
References
3Provider assertions
2snyk · cna
Command Injection
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f40df2bdb252aa7371ef2b3e5c2c90d494ebf4c5dbe50b2d6c9033e2ff23b463
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record