PHP up to 8.1.7 libmagic finfo_buffer free of memory not on the heap
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
8.4 | $0-$5k | 0.00 |
A vulnerability was found in PHP up to 8.1.7 (Programming Language Software). It has been declared as critical. Affected by this vulnerability is the function finfo_buffer
of the component libmagic. The manipulation with an unknown input leads to a free of memory not on the heap vulnerability. The CWE definition for the vulnerability is CWE-590. The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc(). As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
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.
The weakness was presented 07/28/2022 as 81723. It is possible to read the advisory at bugs.php.net. This vulnerability is known as CVE-2022-31627 since 05/25/2022. Technical details of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 08/28/2022).
Upgrading to version 8.1.8 eliminates this vulnerability.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.5VulDB Meta Temp Score: 8.4
VulDB Base Score: 8.1
VulDB Temp Score: 7.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CNA Base Score: 7.7
CNA Vector (PHP Group): 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Free of memory not on the heapCWE: CWE-590
CAPEC: 🔍
ATT&CK: 🔍
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 8.1.8
Timeline
05/25/2022 🔍07/28/2022 🔍
07/28/2022 🔍
08/28/2022 🔍
Sources
Product: php.orgAdvisory: 81723
Status: Confirmed
CVE: CVE-2022-31627 (🔍)
Entry
Created: 07/28/2022 13:51Updated: 08/28/2022 09:46
Changes: 07/28/2022 13:51 (52), 08/28/2022 09:46 (11)
Complete: 🔍
No comments yet. Languages: en.
Please log in to comment.