Advisory

GHSA-3xpw-vhmv-cw7h

Also known as: CVE-2022-25866, SNYK-PHP-CZPROJECTGITPHP-2421349

Summary

Command injection in czproject/git-php

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-04-26 00:00 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

czproject/git-php

Packagist · All systems

Affected

  • introduced 0, fixed 4.0.3 (ecosystem)

Fixed versions

4.0.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences