CVE-2021-44790CWE-787

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

published December 20, 2021

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.9th percentile for exploit probability.

CVSS
—
EPSS
97%
Percentile
99.9
In the wild
Unconfirmed
What it is

⚠️ A buffer overflow lurking in the mod_lua multipart parser could have sneaky consequences! Picture this: a crafted request body sends the parser on a wild ride it wasn’t prepared for. 🔥 Think of it like a restaurant kitchen receiving an oversized delivery — when the order is too much to handle, things can spill over and cause chaos. If the kitchen isn’t equipped to deal with it, the whole operation could break down. In the worst-case scenario, an attacker could potentially exploit this vulnerability to crash the server or execute arbitrary code, leading to downtime or unauthorized access. While no known exploits are out in the wild yet, the possibility of a crafted attack is absolutely concerning!

Put simply

Think of it like a restaurant kitchen receiving an oversized delivery — when the order is too much to handle, things can spill over and cause chaos. If the kitchen isn’t equipped to deal with it, the whole operation could break down. This vulnerability allows a carefully crafted request body to cause a buffer overflow in the mod_lua multipart parser when r:parsebody() is invoked from within Lua scripts. Essentially, it opens the door for unexpected behaviors in the server.

What to do

In the worst-case scenario, an attacker could potentially exploit this vulnerability to crash the server or execute arbitrary code, leading to downtime or unauthorized access. While no known exploits are out in the wild yet, the possibility of a crafted attack is absolutely concerning! To protect your server, immediately update to Apache HTTP Server version 2.4.52 or later. Review any Lua scripts that might use the multipart parser to ensure they are secure and properly handle unexpected input. You've got this! By taking these steps, you can lock down your server and keep it safe from potential problems. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.96840 · 99.9th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2021-12-20T00:00Z
EPSS history
Timeline
  • 20 DEC 00:00Z
    Possible buffer overflow when parsing multipart content in mod_lua of Apache HTTP Server 2.4.51 and earlier
    cvelistv5