Vulnerability · Published Dec 20, 2021 · Assigned by apache

CVE-2021-44790Possible buffer overflow when parsing multipart content in mod_lua of Apache HTTP Server 2.4.51 and earlier

Critical 9.8

In plain English

A critical-severity out-of-bounds write in Apache HTTP Server from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 96.8% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)96.8%top 0.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8httpd2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8httpd-devel2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8httpd-filesystem2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8httpd-manual2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8httpd-tools2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8mod_http21.15.7-3.module_el8.5.0+2609+b30d9eecALSA-2022:0258
AlmaLinux:8mod_ldap2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8mod_md1:2.0.8-8.module_el8.5.0+2609+b30d9eecALSA-2022:0258
AlmaLinux:8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALSA-2022:0258
AlmaLinux:8mod_proxy_html1:2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8mod_session2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
AlmaLinux:8mod_ssl1:2.4.37-43.module_el8.5.0+2609+b30d9eec.1.almaALSA-2022:0258
Alpine:v3.20apache22.4.52-r0ALPINE-CVE-2021-44790
Alpine:v3.21apache22.4.52-r0ALPINE-CVE-2021-44790
Alpine:v3.22apache22.4.52-r0ALPINE-CVE-2021-44790
Alpine:v3.23apache22.4.52-r0ALPINE-CVE-2021-44790
Alpine:v3.24apache22.4.52-r0ALPINE-CVE-2021-44790
Debian:12apache22.4.52-1DEBIAN-CVE-2021-44790
Debian:13apache22.4.52-1DEBIAN-CVE-2021-44790
Debian:14apache22.4.52-1DEBIAN-CVE-2021-44790
Rocky Linux:8httpd0:2.4.37-43.module+el8.5.0+714+5ec56ee8RLSA-2022:0258
Rocky Linux:8httpd0:2.4.37-39.module+el8.4.0+571+fd70afb1RLSA-2022:0258
Rocky Linux:8mod_http20:1.15.7-3.module+el8.5.0+695+1fa8055eRLSA-2022:0258
Rocky Linux:8mod_http20:1.15.7-3.module+el8.4.0+553+7a69454bRLSA-2022:0258
Rocky Linux:8mod_md1:2.0.8-8.module+el8.4.0+553+7a69454bRLSA-2022:0258
Rocky Linux:8mod_md1:2.0.8-8.module+el8.5.0+695+1fa8055eRLSA-2022:0258
Ubuntu:22.04:LTSapache22.4.52-1ubuntu1UBUNTU-CVE-2021-44790

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache HTTP Server Apache HTTP Server 2.4 – through 2.4.51

Weakness: CWE-787

References