Lucene search

K
vulnrichmentPhpVULNRICHMENT:CVE-2024-4577
HistoryJun 09, 2024 - 7:42 p.m.

CVE-2024-4577 Argument Injection in PHP-CGI

2024-06-0919:42:36
CWE-78
php
github.com
6
cve-2024-4577
php
cgi
argument injection
windows
apache
code pages
win32 api
source code
security vulnerability

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.1 High

AI Score

Confidence

Low

0.967 High

EPSS

Percentile

99.7%

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use “Best-Fit” behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.

CNA Affected

[
  {
    "repo": "https://github.com/php/php-src",
    "vendor": "PHP Group",
    "modules": [
      "CGI"
    ],
    "product": "PHP",
    "versions": [
      {
        "status": "affected",
        "version": "8.1.*",
        "lessThan": "8.1.29",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "8.2.*",
        "lessThan": "8.2.20",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "8.3.*",
        "lessThan": "8.3.8",
        "versionType": "semver"
      }
    ],
    "platforms": [
      "Windows"
    ],
    "defaultStatus": "affected"
  }
]

References

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.1 High

AI Score

Confidence

Low

0.967 High

EPSS

Percentile

99.7%