{"id":"CVE-2022-25866","published":"2022-04-25T17:10:10Z","modified":"2024-09-16T16:38:31Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03649,"percentile":0.89864,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","tags":["x_refsource_MISC"]},{"url":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","tags":["x_refsource_MISC"]},{"url":"https://github.com/czproject/git-php/releases/tag/v4.0.3","tags":["x_refsource_MISC"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":17.97},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"czproject/git-php","versions":[">= unspecified, < 4.0.3"]}],"affected":[{"ecosystem":"Packagist","package":"czproject/git-php","vulnerableRanges":["<4.0.3"],"patched":["4.0.3"],"from":["GHSA-3xpw-vhmv-cw7h"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection vulnerability in the czproject/git-php package, affecting versions before 4.0.3, where the isRemoteUrlReadable() function passes both its url and refs parameters to the git ls-remote subcommand in a way that lets additional flags be set. An attacker who can influence those inputs over the network, with no authentication or user interaction required but with high attack complexity, can inject extra git flags to execute arbitrary commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:53Z"},"euvd":{"id":"EUVD-2022-1613","exploited":false,"provenance":"source"}}