High severity8.1NVD Advisory· Published Apr 25, 2022· Updated Jun 17, 2026
CVE-2022-25866
CVE-2022-25866
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
czproject/git-phpPackagist | < 4.0.3 | 4.0.3 |
Affected products
2- czproject/git-phpdescription
Patches
Vulnerability mechanics
References
5- github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733nvdPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349nvdExploitPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-3xpw-vhmv-cw7hghsaADVISORY
- github.com/czproject/git-php/releases/tag/v4.0.3nvdRelease NotesThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-25866ghsaADVISORY
News mentions
0No linked articles in our index yet.