CVE-2022-31627

HIGH

PHP 8.1.0-8.1.7 - Use-After-Free in fileinfo Functions

Title source: llm
STIX 2.1

Description

In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.

References (3)

Core 3
Core References
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugs.php.net/bug.php?id=81723
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20220826-0008/
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202209-20

Scores

CVSS v3 7.7
EPSS 0.0031
EPSS Percentile 54.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L

Details

CWE
CWE-590 CWE-787
Status published
Products (1)
php/php 8.1.0 - 8.1.8
Published Jul 28, 2022
Tracked Since Feb 18, 2026