CVE-2022-25866 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733 | CVE | PatchThird Party Advisory |
| https://github.com/czproject/git-php/releases/tag/v4.0.3 | CVE | Release NotesThird Party Advisory |
| https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349 | CVE | ExploitPatchThird Party Advisory |
| https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733 | [email protected] | PatchThird Party Advisory |
| https://github.com/czproject/git-php/releases/tag/v4.0.3 | [email protected] | Release NotesThird Party Advisory |
| https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| git-php project git-php | < 4.0.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 8, 2023 | CWE Remap | [email protected] |
| May 5, 2022 | Initial Analysis | [email protected] |