CVE-2022-25866

High

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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductGit-php
PublishedApr 25, 2022
First seenApr 25, 2022

How to fix

Update
  • git-php_project git-php4.0.3 or later
  • czproject/git-php4.0.3 or later

Affected products

ProductAffected versionsFixed in
git-php_project git-phpv < 4.0.34.0.3
czproject/git-phpPackagistv < 4.0.34.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.