CVE-2022-31627

Heap buffer overflow in finfo_buffer

State
Published
Severity
7.7 High
Published
Jul 28, 2022
Updated
Sep 16, 2024
Reserved
May 25, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.7 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Lphp

Weaknesses

  • CWE-590 Free of Memory not on the Heap

Affected Products

ProductVersions
PHPPHP Group
  • 8.1.X to before 8.1.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.