Vulnerability in Git-Php Project
CVE-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 $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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.036, 89.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Git-Php Project
- Czproject/git-Php — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349 (Exploit, Patch, Third Party Advisory)
- github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733 (Patch, Third Party Advisory)
- github.com/czproject/git-php/releases/tag/v4.0.3 (Third Party Advisory, Release Notes)