CVEvulnerability

CVE-2022-31627

9.8 CRITICAL Published 2022-07-28 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-07-28
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.7 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS 3.1 ([email protected])
9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-590, CWE-787

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.

Affected configurations

• php php (>= 8.1.0 < 8.1.8)

Related

Weakness · CWE (2)

  • CWE-590 Free of Memory not on the Heap weakness
  • CWE-787 Out-of-bounds Write weakness

References