{"id":"CVE-2022-25866","aliases":["EUVD-2022-1613","GHSA-3xpw-vhmv-cw7h","SNYK-PHP-CZPROJECTGITPHP-2421349"],"status":"published","title":"Command Injection","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":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.03649,"percentile":0.8969,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74","CWE-77","CWE-88"],"published":"2022-04-25T17:10:10Z","modified":"2026-10-28T02:31:07Z","fixes":[{"ecosystem":"Packagist","package":"czproject/git-php","fixed_in":["4.0.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"czproject/git-php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"czproject/git-php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.3"}]}],"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"]}],"products":[{"vendor":"git-php_project","product":"git-php"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/czproject/git-php/releases/tag/v4.0.3","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25866","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3xpw-vhmv-cw7h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25866.json","tags":["advisory"]},{"url":"https://github.com/czproject/git-php","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25866","title":"Command Injection","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.","status":"published","published":"2022-04-25T17:10:10.912Z","modified":"2024-09-16T16:38:31.811Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.374916Z"}],"euvd":[{"id":"EUVD-2022-1613","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.","status":"published","published":"2022-04-25T17:10:10Z","modified":"2024-09-16T16:38:31Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:55:49.526752Z"}],"ghsa":[{"id":"GHSA-3xpw-vhmv-cw7h","title":"Command injection in czproject/git-php","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.","status":"published","published":"2022-04-26T00:00:35Z","modified":"2023-01-27T05:02:21Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-74","CWE-77"],"updated_at":"2026-11-02T14:36:17.742171Z"}],"nvd":[{"id":"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.","status":"published","published":"2022-04-25T17:15:36.637Z","modified":"2026-06-17T04:34:24.947Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:07:18.660414Z"}],"osv":[{"id":"CVE-2022-25866","title":"Command Injection","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.","status":"published","published":"2022-04-25T17:10:10.912Z","modified":"2026-10-28T02:31:07.916039964Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-3xpw-vhmv-cw7h","title":"Command injection in czproject/git-php","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.","status":"published","published":"2022-04-26T00:00:35Z","modified":"2026-09-10T03:49:17.899297532Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-74","CWE-77"],"updated_at":"2026-11-02T15:46:36.092962Z"}]}}
