PT-2022-3933

CVE-2022-31627

·

Published

2022-06-27

·

Updated

2025-08-11

Description by

CVSS 2.0
10
High
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions PHP versions 8.1.x below 8.1.8
Description The issue is related to the implementation of the finfo buffer function in PHP, which can lead to heap corruption due to the incorrect use of a function to free allocated memory. This is caused by an incorrect patch applied to the third-party code from libmagic. The exploitation of this issue may allow a remote attacker to execute arbitrary code.
Recommendations For PHP versions 8.1.x below 8.1.8, update to version 8.1.8 or later to resolve the issue. As a temporary workaround, consider disabling the use of finfo buffer and other fileinfo functions until a patch is applied. Restrict access to sensitive areas of the application to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALT-PU-2022-2271
ALT-PU-2022-2303
BIT-LIBPHP-2022-31627
BIT-PHP-2022-31627
BIT-PHP-MIN-2022-31627
OPENSUSE-SU-2024:12218-1
USN-5530-1
Found an issue in the description? Have something to add? Feel free to write us 👾