cbcvebase.
CVE-2021-44790
published 2021-12-20

CVE-2021-44790: A carefully crafted request body can cause a buffer overflow in the mod_lua multipart parser (r:parsebody() called from Lua scripts). The Apache httpd team is…

PriorityP180critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
97.11%
99.9th percentile
A carefully crafted request body can cause a buffer overflow in the mod_lua multipart parser (r:parsebody() called from Lua scripts). The Apache httpd team is not aware of an exploit for the vulnerabilty though it might be possible to craft one. This issue affects Apache HTTP Server 2.4.51 and earlier.

Affected

32 ranges· showing 25
VendorProductVersion rangeFixed in
apachehttp_server< 2.4.522.4.52
apachehttpd
apache_software_foundationapache_http_serverApache HTTP Server 2.4 – 2.4.51
applemac_os_x
applemacos< 10.15.710.15.7
applemacos>= 11.0 < 11.6.611.6.6
applemacos>= 12.0 < 12.412.4
applemacos_big_sur
applemacos_monterey
applesecurity_update_2022-004_catalina
debianapache2< apache2 2.4.52-1 (bookworm)apache2 2.4.52-1 (bookworm)
debiandebian_linux
debiandebian_linux
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
msrccbl2_httpd_2.4.52-1_on_cbl_mariner_2.0
msrccm1_httpd_2.4.52-1_on_cbl_mariner_1.0
oraclecommunications_element_manager<= 9.0
oraclecommunications_operations_monitor
oraclecommunications_operations_monitor
oraclecommunications_operations_monitor
oraclecommunications_session_report_manager<= 9.0
oraclecommunications_session_route_manager<= 9.0
oraclehttp_server

Detection & IOCsextracted from sources · hover to see the quote

commandPOST /<lua_script>.lua HTTP/1.1 Content-Type: multipart/form-data; boundary=4 4 Content-Disposition: form-data; name="name" 0 4
  • Detect POST requests to .lua endpoints with a multipart/form-data Content-Type header containing a malformed/oversized boundary-delimited body that triggers 'memory allocation error: block too big' in the response.
  • Alert on Apache HTTP Server versions 2.4.51 and earlier receiving multipart POST requests to Lua script endpoints, as these are the affected versions for CVE-2021-44790.
  • Monitor for Apache error log entries containing 'memory allocation error: block too big' as a runtime indicator of exploitation attempts against mod_lua multipart parser.
  • ·The vulnerability is only exploitable when mod_lua is loaded and a Lua script explicitly calls r:parsebody() to process multipart request bodies. Servers not using mod_lua or not invoking r:parsebody() are not affected.
  • ·No known working exploit existed at the time of disclosure, though researchers noted one might be craftable. Detection should be treated as indicative rather than confirmatory of successful exploitation.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_apache9.8HIGH
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu8.2HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.