{"id":"CVE-2022-25866","state":"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.","publishedAt":"2022-04-25T17:10:10.912Z","updatedAt":"2024-09-16T16:38:31.811Z","severity":{"score":8.1,"label":"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","source":"snyk"},"assigner":"snyk","products":["n/a czproject/git-php"],"affected":[{"vendor":"n/a","product":"czproject/git-php","versions":[{"version":"unspecified","status":"affected","lessThan":"4.0.3","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","https://github.com/czproject/git-php/releases/tag/v4.0.3"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:46.971Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/25xxx/CVE-2022-25866.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-25866","state":"PUBLISHED","datePublished":"2022-04-25T17:10:10.912Z","dateUpdated":"2024-09-16T16:38:31.811Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2022-02-24T00:00:00.000Z"},"containers":{"cna":{"title":"Command Injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"czproject/git-php","versions":[{"version":"unspecified","status":"affected","lessThan":"4.0.3","versionType":"custom"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","integrityImpact":"HIGH","privilegesRequired":"NONE","remediationLevel":"NOT_DEFINED","reportConfidence":"NOT_DEFINED","scope":"UNCHANGED","temporalScore":7.7,"temporalSeverity":"HIGH","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Command Injection","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2022-04-25T17:10:10.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"Alessio Della Libera of Snyk Research Team"}],"datePublic":"2022-04-25T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-04-25T17:06:55.902175Z","ID":"CVE-2022-25866","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"czproject/git-php","version":{"version_data":[{"version_affected":"<","version_value":"4.0.3"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"Alessio Della Libera of Snyk Research Team"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349"},{"name":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","refsource":"MISC","url":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733"},{"name":"https://github.com/czproject/git-php/releases/tag/v4.0.3","refsource":"MISC","url":"https://github.com/czproject/git-php/releases/tag/v4.0.3"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/czproject/git-php/releases/tag/v4.0.3","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T04:49:44.449Z"}}]}}}