First published: Tue Jul 05 2022(Updated: )
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.
Credit: security@php.net
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | >=8.1.0<8.1.8 | |
PHP | <8.1.8 | 8.1.8 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31627 is a fixed bug in PHP versions 8.1.x below 8.1.8.
CVE-2022-31627 has a severity level of critical with a score of 9.8.
CVE-2022-31627 can lead to heap corruption in PHP versions 8.1.x below 8.1.8 when using fileinfo functions.
To fix CVE-2022-31627, upgrade PHP to version 8.1.8 or above.
You can find more information about CVE-2022-31627 at the following references: [link1], [link2], [link3].