CVE-2022-25866

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-25866
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25866.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-25866
Aliases
Published
2022-04-25T17:15:36Z
Modified
2024-05-14T11:42:52.770069Z
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

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