CVE-2022-25866

Command Injection

Published Apr 25, 2022 CVSS 3.1 · 8.1 High EPSS 3.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1613 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.
Github GHSA Github GHSA GHSA-3xpw-vhmv-cw7h Command injection in czproject/git-php
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 4:38 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Apr 25, 2022, 5:15 PM
Modified
Jun 17, 2026, 4:34 AM