{"id":"GHSA-3xpw-vhmv-cw7h","aliases":["CVE-2022-25866","SNYK-PHP-CZPROJECTGITPHP-2421349"],"title":"Command injection in czproject/git-php","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","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.","severity":"high","score":8.1,"published":"2022-04-26T00:00:35.000Z","modified":"2026-09-10T03:49:17.899Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"czproject/git-php","sources":[{"name":"OSV · GHSA-3xpw-vhmv-cw7h","url":"https://osv.dev/vulnerability/GHSA-3xpw-vhmv-cw7h"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"4.0.3"}],"type":"ECOSYSTEM"}],"versions":["3.10.0","v1.0.0","v1.0.1","v1.0.2","v2.0.0","v3.0.0","v3.1.0","v3.11.0","v3.12.0","v3.13.0","v3.13.1","v3.14.0","v3.15.0","v3.15.1","v3.16.0","v3.16.1","v3.16.2","v3.17.0","v3.17.1","v3.18.0","v3.18.1","v3.18.2","v3.2.0","v3.3.0","v3.4.0","v3.5.0","v3.6.0","v3.7.0","v3.8.0","v3.9.0","v3.9.0-RC1","v3.9.1","v4.0.0","v4.0.1","v4.0.2"],"fixed":["4.0.3"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-25866","https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","https://github.com/czproject/git-php","https://github.com/czproject/git-php/releases/tag/v4.0.3","https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349"],"sources":[{"name":"OSV","id":"GHSA-3xpw-vhmv-cw7h","modified":"2026-09-10T03:49:17.899297532Z","url":"https://osv.dev/vulnerability/GHSA-3xpw-vhmv-cw7h"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T03:25:32.145Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}