← Vulnerability feed

Vulnerability record · CVE-2021-44790 · published 20 December 2021

CVE-2021-44790: Apache HTTP Server mod_lua multipart parser buffer overflow

Apache · Http Server

A crafted request body triggers an out-of-bounds write in the mod_lua multipart parser when r:parsebody() is called from Lua scripts. The flaw affects Apache HTTP Server 2.4.51 and earlier and can corrupt memory in the server process. Because the vulnerable code path is only reachable when a Lua script invokes r:parsebody(), exposure depends on the server's mod_lua configuration.

9.8 CVSS 3.1 Critical EPSS 97% · top 0.1% CWE-787 · Out-of-bounds write
9.8CVSS 3.1 base score, v2 7.5
97%EPSS exploitation probability, 30 days
NoNot in CISA KEV
14Affected product versions listed by NVD
40References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or interaction required, a very high EPSS score and public exploit material make this a top patching priority where mod_lua is exposed.

What it is

A crafted request body triggers an out-of-bounds write in the mod_lua multipart parser when r:parsebody() is called from Lua scripts. The flaw affects Apache HTTP Server 2.4.51 and earlier and can corrupt memory in the server process. Because the vulnerable code path is only reachable when a Lua script invokes r:parsebody(), exposure depends on the server's mod_lua configuration.

Impact

An unauthenticated remote attacker can corrupt memory in the httpd process, which may lead to code execution or a denial of service. The CVSS vector rates confidentiality, integrity and availability impact as high.

Attack surface

Reached over the network by sending a crafted request body to an endpoint whose Lua script calls r:parsebody(); the CVSS vector shows no privileges or user interaction required. Actual reachability requires mod_lua to be enabled and a script using that parser.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.9684, 99.885th percentile) and a Packet Storm reference is tagged Exploit, indicating public exploit material exists. The Apache advisory states the team was not aware of an exploit at publication.

What to do

  • Upgrade Apache HTTP Server to a version later than 2.4.51 that contains the mod_lua fix.
  • If mod_lua is not required, disable or unload the module to remove the vulnerable code path.
  • Audit Lua scripts for r:parsebody() usage and restrict or rewrite those handlers where possible.
  • Apply vendor patches for downstream packages (Debian, Fedora, Oracle, NetApp, Apple) that bundle the affected httpd.
  • Where patching is delayed, limit exposure of Lua-backed endpoints with network controls and request body size limits.

Detection

  • Monitor httpd logs for crashes, restarts or abnormal child process termination correlated with multipart POST requests.
  • Inspect request bodies to Lua-backed endpoints for malformed or oversized multipart boundaries and parts.
  • Use host-based memory corruption or exploit detection tooling on httpd processes handling mod_lua requests.
  • Check for unexpected outbound connections or new processes spawned by the httpd user after multipart uploads.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

14 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://httpd.apache.org/security/vulnerabilities_24.html Vendor Advisory
http://packetstormsecurity.com/files/171631/Apache-2.4.x-Buffer-Overflow.html Exploit
http://seclists.org/fulldisclosure/2022/May/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/38 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/20/4 Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFSWOH4X77CV7AH7C4RMHUB Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RGWILBORT67SHMSLYSQZG2N Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X73C35MMMZGBVPQQCH7LQZU Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z7H26WJ6TPKNWV3QKY4BHKU Third Party Advisory
https://security.gentoo.org/glsa/202208-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211224-0001/ Third Party Advisory
https://support.apple.com/kb/HT213255 Third Party Advisory
https://support.apple.com/kb/HT213256 Third Party Advisory
https://support.apple.com/kb/HT213257 Third Party Advisory
https://www.debian.org/security/2022/dsa-5035 Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.tenable.com/security/tns-2022-01 Third Party Advisory
https://www.tenable.com/security/tns-2022-03 Third Party Advisory
http://httpd.apache.org/security/vulnerabilities_24.html Vendor Advisory
http://packetstormsecurity.com/files/171631/Apache-2.4.x-Buffer-Overflow.html Exploit
http://seclists.org/fulldisclosure/2022/May/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/38 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/12/20/4 Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFSWOH4X77CV7AH7C4RMHUB Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RGWILBORT67SHMSLYSQZG2N Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X73C35MMMZGBVPQQCH7LQZU Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z7H26WJ6TPKNWV3QKY4BHKU Third Party Advisory
https://security.gentoo.org/glsa/202208-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211224-0001/ Third Party Advisory
https://support.apple.com/kb/HT213255 Third Party Advisory
https://support.apple.com/kb/HT213256 Third Party Advisory
https://support.apple.com/kb/HT213257 Third Party Advisory
https://www.debian.org/security/2022/dsa-5035 Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.tenable.com/security/tns-2022-01 Third Party Advisory
https://www.tenable.com/security/tns-2022-03 Third Party Advisory

Track CVE-2021-44790 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed

Source: NIST National Vulnerability Database (record CVE-2021-44790), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.