CVE-2022-31627

High

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.

SeverityHigh
CVSS7.7
Exploit probability—
ProductPhp
PublishedJul 28, 2022
First seenJul 28, 2022
Weakness typeCWE-590CWE-590

How to fix

Update
  • php php8.1.8 or later

Affected products

ProductAffected versionsFixed in
php php8.1.0 ≤ v < 8.1.88.1.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.