QID 150595

Date Published: 2022-11-28

QID 150595: PHP Insufficient Input Validation Vulnerability (CVE-2022-31630)

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 using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information.

Affected Versions:
PHP versions before 7.4.33
PHP versions 8.0.0 prior to 8.0.25
PHP versions 8.1.0 prior to 8.1.12

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 the vulnerability may allow an attacker to crash the PHP process or Denial of Service (DoS) or disclosure of confidential information.

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

    Vendor References

    CVEs related to QID 150595

    Software Advisories
    Advisory ID Software Component Link
    Sec Bug 81739 URL Logo bugs.php.net/bug.php?id=81739