p PatchFirst

CVE-2022-31627

CVE-2022-31627 · Heap buffer overflow in finfo_buffer

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.7 · High · EPSS 2.1% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 8.1.X, < 8.1.8: Affected (custom)

    Update to 8.1.8

  • php8.1 Ubuntu:22.04:LTS

    Versions
    • 8.1.0~rc4-1ubuntu2
    • 8.1.0-1
    • 8.1.2-1ubuntu1
    • 8.1.2-1ubuntu2
    • 8.1.2-1ubuntu2.1
    Affected ranges
    • ECOSYSTEM: < 8.1.2-1ubuntu2.2

    Update to 8.1.2-1ubuntu2.2

Original sources

Check your server →