Vulnerability in Git-Php Project

CVE-2022-25866

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.

EPSS: 0.039 (89.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-25866?
CVE-2022-25866 is a high-severity vulnerability in Git-Php Project, classified under Argument Injection. CVSS score: 8.1/10. Published 2022-04-25.
How severe is CVE-2022-25866?
High severity. CVSS v3 base score is 8.1 out of 10.
Is CVE-2022-25866 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.