Vulnerability Details : CVE-2022-31627
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.
Vulnerability category: Memory Corruption
Products affected by CVE-2022-31627
- 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
-
https://security.gentoo.org/glsa/202209-20
PHP: Multiple Vulnerabilities (GLSA 202209-20) — Gentoo securityThird Party Advisory
-
https://security.netapp.com/advisory/ntap-20220826-0008/
CVE-2022-31627 PHP Vulnerability in NetApp Products | NetApp Product SecurityThird Party Advisory
-
https://bugs.php.net/bug.php?id=81723
PHP :: Sec Bug #81723 :: Heap buffer overflow in finfo_bufferExploit;Issue Tracking;Patch;Third Party Advisory
Jump to