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.
Published 2022-07-28 06:15:08
Updated 2022-10-25 19:45:52
Source PHP Group
View at NVD,   CVE.org
Vulnerability category: Memory Corruption

Products affected by CVE-2022-31627

  • PHP » PHP
    Versions from including (>=) 8.1.0 and before (<) 8.1.8
    cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

Threat overview for CVE-2022-31627

Top countries where our scanners detected CVE-2022-31627
Top open port discovered on systems with this issue 80
IPs affected by CVE-2022-31627 17,842
Threat actors abusing to this issue? Yes
Find out if you* are affected by CVE-2022-31627!
*Directly or indirectly through your vendors, service providers and 3rd parties. Powered by attack surface intelligence from SecurityScorecard.

Exploit prediction scoring system (EPSS) score for CVE-2022-31627

0.31%
Probability of exploitation activity in the next 30 days EPSS Score History
~ 70 %
Percentile, the proportion of vulnerabilities that are scored at or less

CVSS scores for CVE-2022-31627

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source First Seen
9.8
CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.9
5.9
NIST
7.7
HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
2.2
5.5
PHP Group

CWE ids for CVE-2022-31627

  • The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().
    Assigned by: security@php.net (Secondary)
  • The product writes data past the end, or before the beginning, of the intended buffer.
    Assigned by: nvd@nist.gov (Primary)

References for CVE-2022-31627

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!