CVE-2022-25866

CVSS V2 High 7.5 CVSS V3 Critical 9.8
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.
Overview
  • CVE ID
  • CVE-2022-25866
  • Assigner
  • report@snyk.io
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2022-04-25T17:15:36
  • Last Modified Date
  • 2022-05-05T19:39:38
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:git-php_project:git-php:*:*:*:*:*:*:*:* 1 OR 4.0.3
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:P/I:P/A:P
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • PARTIAL
  • Integrity Impact
  • PARTIAL
  • Availability Impact
  • PARTIAL
  • Base Score
  • 7.5
  • Severity
  • HIGH
  • Exploitability Score
  • 10
  • Impact Score
  • 6.4
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • HIGH
  • Base Score
  • 9.8
  • Base Severity
  • CRITICAL
  • Exploitability Score
  • 3.9
  • Impact Score
  • 5.9
References
Reference URL Reference Tags
https://github.com/czproject/git-php/commit/5e82d5479da5f16d37a915de4ec55e1ac78de733 Patch Third Party Advisory
https://github.com/czproject/git-php/releases/tag/v4.0.3 Release Notes Third Party Advisory
https://snyk.io/vuln/SNYK-PHP-CZPROJECTGITPHP-2421349 Exploit Patch Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-08 06:19:02 Added to TrackCVE