CVE-2022-25866
Summary
| CVE | CVE-2022-25866 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-04-25 17:15:00 UTC |
| Updated | 2023-08-08 14:21:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-88
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Git-php Project | Git-php | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Command Injection in czproject/git-php | CVE-2022-25866 | Snyk | CONFIRM | snyk.io | |
| Release Version 4.0.3 · czproject/git-php · GitHub | CONFIRM | github.com | |
| Uses --end-of-options after command options (for security reasons) · czproject/git-php@5e82d54 · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Alessio Della Libera of Snyk Research Team
There are currently no legacy QID mappings associated with this CVE.