ADVISORIES

Vulnerability

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.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • ALAS2023-2023-081

    Amazon Linux 2023 - ALAS2023-2023-081: Important priority package update for php8.1

    Important CVE-2022-31627CVE-2022-31628CVE-2022-31629CVE-2022-31630 Amazon Linux Updated 22 February 2023
  • CNA-CVE-2022-31627

    Heap buffer overflow in finfo_buffer

    CVE-2022-31627 PHP Updated 16 September 2024
  • UBUNTU-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…

    CVE-2022-31627 Ubuntu Updated 24 November 2026
  • USN-5530-1

    php8.1 vulnerability

    CVE-2022-31627 Ubuntu Updated 24 November 2026
  • openSUSE-SU-2024:12218-1

    php8-8.1.8-1.1 on GA media

    CVE-2022-31627 openSUSE Updated 4 February 2026

References