Vulnerability · Published Apr 25, 2022 · Assigned by snyk

CVE-2022-25866Command Injection

High 8.1

In plain English

A high-severity security flaw in czproject/git-php. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)3.6%top 10.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistczproject/git-php4.0.3GHSA-3xpw-vhmv-cw7h

Affected products (as reported)

VendorProductVersions
n/a czproject/git-php unspecified – before 4.0.3

References