QID 38880

Date Published: 2022-11-24

QID 38880: Hypertext Preprocessor (PHP) Multiple Security Vulnerabilities (81738, 81739)

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.

CVE-2022-31630: 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.
CVE-2022-37454: The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties.

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 tackers to execute arbitrary code on the system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Medium - 3.6 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 38880

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