Buffer overflow in PHP - CVE-2022-4900

 

Buffer overflow in PHP - CVE-2022-4900

Published: March 30, 2023


Vulnerability identifier: #VU74185
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-4900
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: PHP Group
Affected software:
PHP

Detailed vulnerability description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the php_cli_server_startup_workers() function in sapi/cli/php_cli_server.c when processing PHP_CLI_SERVER_WORKERS environment variable. A local user can trigger memory corruption and execute arbitrary code on the target system.



How to mitigate CVE-2022-4900

Install updates from vendor's website.

Sources