Skip to main content
← All vulnerabilities
CVE-2022-25866GHSA-3XPW-VHMV-CW7HSNYK-PHP-CZPROJECTGITPHP-2421349

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.3
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a czproject/git-php

    fixed in 4.0.3

  • czproject/git-phpPackagist

    fixed in 4.0.3

References 3

snyk.io

GitHub · czproject/git-php