Advisory Details

June 29th, 2022

Apache HTTPD Server ap_escape_html2 Integer Overflow Remote Code Execution Vulnerability

ZDI-22-876
ZDI-CAN-16119

CVE ID CVE-2022-22721
CVSS SCORE 8.1, (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
AFFECTED VENDORS Apache
AFFECTED PRODUCTS HTTPD Server 2.x
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Apache HTTPD Server. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the ap_escape_html2 function. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a buffer. An attacker can leverage this vulnerability to execute code in the context of the service account.

ADDITIONAL DETAILS Apache has issued an update to correct this vulnerability. More details can be found at:
https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2022-22721
DISCLOSURE TIMELINE
  • 2021-12-16 - Vulnerability reported to vendor
  • 2022-06-29 - Coordinated public release of advisory
CREDIT Anonymous
BACK TO ADVISORIES