Skip to content
OpenAdvisories
High · 8.1 CVE-2022-25866 EUVD-2022-1613GHSA-3xpw-vhmv-cw7hSNYK-PHP-CZPROJECTGITPHP-2421349

Command Injection

Published Apr 25, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— czproject/git-php unspecified – < 4.0.3 4.0.3

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist czproject/git-php < 4.0.3 4.0.3 GHSA-3xpw-vhmv-cw7h

References