QID 150480

Date Published: 2022-03-09

QID 150480: Improper Handling of XML Functions in PHP (CVE-2021-21707)

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.

The vulnerability exists due to insufficient validation of user-supplied input within the XML functions like simplexml_load_file() when processing NULL byte character (e.g. %00). A remote attacker can pass specially crafted URL to the application and bypass implemented security restrictions.

Affected versions:
7.3.x below 7.3.33
7.4.x below 7.4.26
8.0.x below 8.0.13

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 lead to disclosure of sensitive information.

  • CVSS V3 rated as Medium - 5.3 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    Customers are advised to upgrade to the latest version of PHP.
    Vendor References

    CVEs related to QID 150480

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