All vulnerabilities

Servers and applications

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.

Severity
Critical 9.8
Published
28 Jul 2022
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
8.1.8
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 8.1.0 before 8.1.8

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-31627
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-31627