CVE-2022-25866
published 2022-04-25CVE-2022-25866: The package czproject/git-php before 4.0.3 are vulnerable to Command Injection via git argument injection. When calling the isRemoteUrlReadable($url, array…
PriorityP260critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
3.77%
88.6th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| czproject | git-php | >= 0 < 4.0.3 | 4.0.3 |
| czproject | git-php | >= unspecified < 4.0.3 | 4.0.3 |
| git-php_project | git-php | < 4.0.3 | 4.0.3 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Command injection in czproject/git-php
osv·2022-04-26
CVE-2022-25866 [HIGH] Command injection in czproject/git-php
Command injection in czproject/git-php
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.
GHSA
Command injection in czproject/git-php
ghsa·2022-04-26
CVE-2022-25866 [HIGH] CWE-74 Command injection in czproject/git-php
Command injection in czproject/git-php
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733https://github.com/czproject/git-php/releases/tag/v4.0.3https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733https://github.com/czproject/git-php/releases/tag/v4.0.3https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349
2022-04-25
Published