Skip to content

CVE-2022-25866 Command Injection

CriticalCVSS 9.8 EPSS 3.6%
Published
Updated
Exploit status
No public exploit known
Technology
PHP

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
czproject/git-php(Packagist) < 4.0.3; = 3.10.0; = v1.0.0; = v1.0.1 +32 more 4.0.3 Fixed
git-php project git-php < 4.0.3 4.0.3 Fixed

Affected products

ProductAffected versionsFixed in
czproject/git-php(Packagist) < 4.0.3 4.0.3
czproject/git-php(Packagist) = 3.10.0 No fix listed
czproject/git-php(Packagist) = v1.0.0 No fix listed
czproject/git-php(Packagist) = v1.0.1 No fix listed
czproject/git-php(Packagist) = v1.0.2 No fix listed
czproject/git-php(Packagist) = v2.0.0 No fix listed
czproject/git-php(Packagist) = v3.0.0 No fix listed
czproject/git-php(Packagist) = v3.1.0 No fix listed
czproject/git-php(Packagist) = v3.11.0 No fix listed
czproject/git-php(Packagist) = v3.12.0 No fix listed
czproject/git-php(Packagist) = v3.13.0 No fix listed
czproject/git-php(Packagist) = v3.13.1 No fix listed
czproject/git-php(Packagist) = v3.14.0 No fix listed
czproject/git-php(Packagist) = v3.15.0 No fix listed
czproject/git-php(Packagist) = v3.15.1 No fix listed
czproject/git-php(Packagist) = v3.16.0 No fix listed
czproject/git-php(Packagist) = v3.16.1 No fix listed
czproject/git-php(Packagist) = v3.16.2 No fix listed
czproject/git-php(Packagist) = v3.17.0 No fix listed
czproject/git-php(Packagist) = v3.17.1 No fix listed
czproject/git-php(Packagist) = v3.18.0 No fix listed
czproject/git-php(Packagist) = v3.18.1 No fix listed
czproject/git-php(Packagist) = v3.18.2 No fix listed
czproject/git-php(Packagist) = v3.2.0 No fix listed
czproject/git-php(Packagist) = v3.3.0 No fix listed
Show 12 more
ProductAffected versionsFixed in
czproject/git-php(Packagist) = v3.4.0 No fix listed
czproject/git-php(Packagist) = v3.5.0 No fix listed
czproject/git-php(Packagist) = v3.6.0 No fix listed
czproject/git-php(Packagist) = v3.7.0 No fix listed
czproject/git-php(Packagist) = v3.8.0 No fix listed
czproject/git-php(Packagist) = v3.9.0 No fix listed
czproject/git-php(Packagist) = v3.9.0-RC1 No fix listed
czproject/git-php(Packagist) = v3.9.1 No fix listed
czproject/git-php(Packagist) = v4.0.0 No fix listed
czproject/git-php(Packagist) = v4.0.1 No fix listed
czproject/git-php(Packagist) = v4.0.2 No fix listed
git-php project git-php < 4.0.3 4.0.3

References