Vulnerability · Published Apr 25, 2022 · Assigned by snyk
CVE-2022-25866Command Injection
High 8.1
In plain English
A high-severity security flaw in czproject/git-php. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)3.6%top 10.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | czproject/git-php | 4.0.3 | GHSA-3xpw-vhmv-cw7h |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | czproject/git-php | unspecified – before 4.0.3 |
References
- https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349 x_refsource_MISC
- https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733 x_refsource_MISC
- https://github.com/czproject/git-php/releases/tag/v4.0.3 x_refsource_MISC