CVE-2022-25866

Source
https://cve.org/CVERecord?id=CVE-2022-25866
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-25866.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-25866
Aliases
Related
  • SNYK-PHP-CZPROJECTGITPHP-2421349
Published
2022-04-25T17:15:36.637Z
Modified
2026-03-17T23:57:02.266789Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Git / github.com/czproject/git-php

Affected ranges

Type
GIT
Repo
https://github.com/czproject/git-php
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.0.3"
        }
    ]
}

Affected versions

v1.*
v1.0.0
v1.0.1
v1.0.2
v2.*
v2.0.0
v3.*
v3.0.0
v3.1.0
v3.10.0
v3.11.0
v3.12.0
v3.13.0
v3.13.1
v3.14.0
v3.15.0
v3.15.1
v3.16.0
v3.16.1
v3.16.2
v3.17.0
v3.17.1
v3.18.0
v3.18.1
v3.18.2
v3.2.0
v3.3.0
v3.4.0
v3.5.0
v3.6.0
v3.7.0
v3.8.0
v3.9.0
v3.9.0-RC1
v3.9.1
v4.*
v4.0.0
v4.0.1
v4.0.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-25866.json"