QID 38882

Date Published: 2022-11-28

QID 38882: Hypertext Preprocessor (PHP) Heap Buffer Overflow Vulnerability (81723)

PHP is a programming language originally designed for use in web-based applications with HTML content. PHP supports a wide variety of platforms and is used by numerous web-based software applications.

In installed version of PHP, 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 Versions:
PHP versions 8.1.x prior to 8.1.8

QID Detection Logic (Unauthenticated):
This QID checks the HTTP Server header to see if the server is running a vulnerable version of PHP.

Successful exploitation of this vulnerability could allow a remote attacker to trigger Buffer Overflow and execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Customers are advised to upgrade to the latest version of PHP.
    For more information please refer to Sec Bug 81723 .

    Vendor References

    CVEs related to QID 38882

    Software Advisories
    Advisory ID Software Component Link
    81723 URL Logo bugs.php.net/81723