Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zeHB3LXZobXYtY3c3aM1A4A

Command injection in czproject/git-php

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.

Permalink: https://github.com/advisories/GHSA-3xpw-vhmv-cw7h
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zeHB3LXZobXYtY3c3aM1A4A
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 2 years ago
Updated: over 1 year ago


CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-3xpw-vhmv-cw7h, CVE-2022-25866
References: Repository: https://github.com/czproject/git-php
Blast Radius: 17.0

Affected Packages

packagist:czproject/git-php
Dependent packages: 61
Dependent repositories: 125
Downloads: 2,518,500 total
Affected Version Ranges: < 4.0.3
Fixed in: 4.0.3
All affected versions: 1.0.0, 1.0.1, 1.0.2, 2.0.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.9.1, 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.13.1, 3.14.0, 3.15.0, 3.15.1, 3.16.0, 3.16.1, 3.16.2, 3.17.0, 3.17.1, 3.18.0, 3.18.1, 3.18.2, 4.0.0, 4.0.1, 4.0.2
All unaffected versions: 4.0.3, 4.0.4, 4.0.5, 4.1.0, 4.2.0