{"id":"CVE-2022-25866","aliases":["CVE-2022-25866","GHSA-3xpw-vhmv-cw7h","SNYK-PHP-CZPROJECTGITPHP-2421349"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El paquete czproject/git-php versiones anteriores a 4.0.3, es vulnerable a una inyección de comandos por medio de una inyección de argumentos git. Cuando es llamado a la función isRemoteUrlReadable($url, array $refs = NULL), los parámetros url y refs son pasados al subcomando git ls-remote de forma que puedan establecerse flags adicionales. Los flags adicionales pueden ser usados para llevar a cabo una inyección de comandos","source":"nvd"}],"published":"2022-04-25T17:10:10.912Z","modified":"2026-09-10T03:49:17.899Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74","CWE-77","CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.0.3","status":"affected"}],"product":"czproject/git-php","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.3"}],"ecosystem":"Packagist","package":"czproject/git-php","purl":"pkg:composer/czproject/git-php","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.0.3"}],"vendor":"git-php_project","product":"git-php","cpe":"cpe:2.3:a:git-php_project:git-php:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/czproject/git-php/releases/tag/v4.0.3","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25866","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/czproject/git-php","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25866","url":"https://www.cve.org/CVERecord?id=CVE-2022-25866","licence":"CVE Terms of Use","modified":"2024-09-16T16:38:31.811Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3xpw-vhmv-cw7h","url":"https://github.com/advisories/GHSA-3xpw-vhmv-cw7h","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:17.899Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25866","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25866","licence":"Public domain","modified":"2026-06-17T04:34:24.947Z"}],"updatedAt":"2026-11-25T22:58:11.239Z","epss":{"score":0.03649,"percentile":0.89882,"date":"2026-12-01T12:00:22.000Z"}}