{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-25866","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.","descriptionLong":"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.","published":"2022-04-25T17:10:10.912Z","updated":"2026-10-28T02:31:07.916039964Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"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","rating":"high","source":"snyk"},"metrics":[{"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","rating":"high","source":"snyk"},{"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","rating":"high","source":"snyk.io"},{"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","rating":"critical","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":["czproject/git-php"],"affectedProducts":[{"vendor":"n/a","product":"czproject/git-php","defaultStatus":null,"versions":[{"lessThan":"4.0.3","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"czproject/git-php","purl":"pkg:composer/czproject/git-php","ranges":["<4.0.3"],"fixed":["4.0.3"],"advisory":"GHSA-3xpw-vhmv-cw7h"}],"cwes":["CWE-88","CWE-74","CWE-77"],"aliases":["GHSA-3xpw-vhmv-cw7h","SNYK-PHP-CZPROJECTGITPHP-2421349"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25866.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25866","tags":["advisory"]},{"url":"https://github.com/czproject/git-php","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03649,"epssPercentile":0.89833,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-25866","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25866","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-25866","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3xpw-vhmv-cw7h","ok":true,"note":"GHSA-3xpw-vhmv-cw7h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25866","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}