Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-44790 EUVD-2021-31595GHSA-c547-2659-q37g

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

Published Dec 20, 2021 · Updated Aug 4, 2024 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache HTTP Server Apache HTTP Server 2.4 – ≤ 2.4.51 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache2 2.4.52-1 —
Debian 13 apache2 2.4.52-1 —
Debian 12 apache2 2.4.52-1 —
Debian 11 apache2 2.4.52-1~deb11u2 DSA-5035-1
Debian 10 apache2 2.4.38-3+deb10u7 DSA-5035-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 apache2 2.4.25-3+deb9u12 DLA-2907-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS apache2 2.4.52-1ubuntu1 —
Ubuntu 20.04 LTS apache2 2.4.41-4ubuntu3.9 USN-5212-1
Ubuntu 18.04 LTS apache2 2.4.29-1ubuntu4.21 USN-5212-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS apache2 2.4.18-2ubuntu3.17+esm4 USN-5212-2
Ubuntu Pro 14.04 LTS apache2 2.4.7-1ubuntu4.22+esm3 USN-5212-2
ReleasePackageFixed inAdvisory
RHEL 8 httpd +6 2.4.37-43.module+el8.5.0+13806+b30d9eec.1 RHSA-2022:0258
RHEL 8 mod_http2 1.15.7-3.module+el8.4.0+8625+d397f3da RHSA-2022:0258
RHEL 8 mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2022:0258
RHEL 8 mod_ssl +1 1:2.4.37-43.module+el8.5.0+13806+b30d9eec.1 RHSA-2022:0258
RHEL 7 httpd +5 2.4.6-97.el7_9.4 RHSA-2022:0143
RHEL 7 mod_ssl +1 1:2.4.6-97.el7_9.4 RHSA-2022:0143
RHEL 3 httpd24-httpd +5 2.4.34-23.el7.1 RHSA-2022:0303
RHEL 3 httpd24-mod_ssl +1 1:2.4.34-23.el7.1 RHSA-2022:0303
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.4 EUS httpd +6 2.4.37-39.module+el8.4.0+13807+c8c001ae.3 RHSA-2022:0258
RHEL 8.4 EUS mod_http2 1.15.7-3.module+el8.4.0+8625+d397f3da RHSA-2022:0258
RHEL 8.4 EUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2022:0258
RHEL 8.4 EUS mod_ssl +1 1:2.4.37-39.module+el8.4.0+13807+c8c001ae.3 RHSA-2022:0258
RHEL 8.2 EUS httpd +6 2.4.37-21.module+el8.2.0+13808+dea277df.3 RHSA-2022:0258
RHEL 8.2 EUS mod_http2 1.11.3-3.module+el8.2.0+7758+84b4ca3e.1 RHSA-2022:0258
RHEL 8.2 EUS mod_md 1:2.0.8-7.module+el8.2.0+5531+7e4d69a2 RHSA-2022:0258
RHEL 8.2 EUS mod_ssl +1 1:2.4.37-21.module+el8.2.0+13808+dea277df.3 RHSA-2022:0258
RHEL 8.1 E4S httpd +7 2.4.37-16.module+el8.1.0+13809+822d170a.3 RHSA-2022:0288
RHEL 8.1 E4S mod_http2 1.11.3-3.module+el8.1.0+7763+babdfe5b.1 RHSA-2022:0288
RHEL 8.1 E4S mod_ssl +1 1:2.4.37-16.module+el8.1.0+13809+822d170a.3 RHSA-2022:0288
RHEL 7.7 TUS httpd +5 2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.7 TUS mod_ssl +1 1:2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.7 E4S httpd +5 2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.7 E4S mod_ssl +1 1:2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.7 AUS httpd +5 2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.7 AUS mod_ssl +1 1:2.4.6-90.el7_7.3 RHSA-2022:1137
RHEL 7.6 TUS httpd +5 2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.6 TUS mod_ssl +1 1:2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.6 E4S httpd +5 2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.6 E4S mod_ssl +1 1:2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.6 AUS httpd +5 2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.6 AUS mod_ssl +1 1:2.4.6-89.el7_6.4 RHSA-2022:1136
RHEL 7.4 AUS httpd +5 2.4.6-67.el7_4.9 RHSA-2022:1138
RHEL 7.4 AUS mod_ssl +1 1:2.4.6-67.el7_4.9 RHSA-2022:1138
RHEL 7.3 AUS httpd +5 2.4.6-45.el7_3.8 RHSA-2022:1139
RHEL 7.3 AUS mod_ssl +1 1:2.4.6-45.el7_3.8 RHSA-2022:1139

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 httpd +6 2.4.37-43.module_el8.5.0+2609+b30d9eec.1.alma ALSA-2022:0258
AlmaLinux 8 mod_http2 1.15.7-3.module_el8.5.0+2609+b30d9eec ALSA-2022:0258
AlmaLinux 8 mod_md 1:2.0.8-8.module_el8.5.0+2609+b30d9eec ALSA-2022:0258
AlmaLinux 8 mod_ssl +1 1:2.4.37-43.module_el8.5.0+2609+b30d9eec.1.alma ALSA-2022:0258

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 httpd 2.4.37-39.module+el8.4.0+571+fd70afb1 RLSA-2022:0258
Rocky Linux 8 mod_http2 1.15.7-3.module+el8.4.0+553+7a69454b RLSA-2022:0258
Rocky Linux 8 mod_md 1:2.0.8-8.module+el8.4.0+553+7a69454b RLSA-2022:0258
ReleasePackageFixed inAdvisory
SLES 15 SP5 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLES 15 SP4 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLES 15 SP3 apache2 2.4.51-3.37.1 SUSE-SU-2022:0091-1
SLES 15 SP2 apache2 2.4.51-3.37.1 SUSE-SU-2022:0091-2, SUSE-SU-2022:0091-1
SLES 15 SP1 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
SLES 12 SP5 apache2 2.4.51-35.7.1 SUSE-SU-2022:0440-1
SLES 12 SP4 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SLES 12 SP3 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SLES 12 SP2 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SLES for SAP 15 SP5 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLES for SAP 15 SP4 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLES for SAP 15 SP1 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
SLES for SAP 15 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
SLES for SAP 12 SP5 apache2 2.4.51-35.7.1 SUSE-SU-2022:0440-1
SLES for SAP 12 SP4 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SLES for SAP 12 SP3 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SLE HPC 15 SP5 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLE HPC 15 SP4 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLE HPC 15 SP1 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
SLE HPC 15 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
SUSE Package Hub 15 SP3 chromium 99.0.4844.84-bp153.2.75.1 openSUSE-SU-2022:0091-1
SUSE OpenStack Cloud Crowbar 9 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SUSE OpenStack Cloud Crowbar 8 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SUSE OpenStack Cloud 9 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SUSE OpenStack Cloud 8 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SUSE HPE Helion OpenStack 8 apache2 2.4.23-29.83.1 SUSE-SU-2022:0065-1
SUSE Enterprise Storage 6 apache2 2.4.33-3.61.1 SUSE-SU-2022:0119-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2 2.4.52-1.1 openSUSE-SU-2024:11695-1
openSUSE Leap 15.3 apache2 2.4.51-3.37.1 openSUSE-SU-2022:0091-1
openSUSE Leap 15.3 chromium 99.0.4844.84-bp153.2.75.1 openSUSE-SU-2022:0091-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache2 2.4.52-r0 —
Alpine v3.23 apache2 2.4.52-r0 —
Alpine v3.22 apache2 2.4.52-r0 —
Alpine v3.21 apache2 2.4.52-r0 —
Alpine v3.20 apache2 2.4.52-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache2 2.4.52-r0 —
Alpine v3.18 apache2 2.4.52-r0 —
Alpine v3.17 apache2 2.4.52-r0 —
Alpine v3.16 apache2 2.4.52-r0 —
Alpine v3.15 apache2 2.4.52-r0 —
Alpine v3.14 apache2 2.4.52-r0 —
Alpine v3.13 apache2 2.4.52-r0 —
Alpine v3.12 apache2 2.4.52-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 httpd +8 2.4.54-3.amzn2023.0.4 ALAS2023-2023-072
Amazon Linux 2023 mod_ssl +1 1:2.4.54-3.amzn2023.0.4 ALAS2023-2023-072
Amazon Linux 2 httpd +7 2.4.52-1.amzn2 ALAS2-2022-1737
Amazon Linux 2 mod_ssl +1 1:2.4.52-1.amzn2 ALAS2-2022-1737

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) httpd 2.4.52-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 httpd +6 2.4.37-43.0.1.module+el8.5.0+20475+4f6a8fd5.1 ELSA-2022-0258
Oracle Linux 8 mod_http2 1.15.7-3.module+el8.4.0+20024+b87b2deb ELSA-2022-0258
Oracle Linux 8 mod_md 1:2.0.8-8.module+el8.5.0+20475+4f6a8fd5 ELSA-2022-0258
Oracle Linux 8 mod_ssl +1 1:2.4.37-43.0.1.module+el8.5.0+20475+4f6a8fd5.1 ELSA-2022-0258
Oracle Linux 7 httpd +5 2.4.6-97.0.5.el7_9.4 ELSA-2022-0143
Oracle Linux 7 mod_ssl +1 1:2.4.6-97.0.5.el7_9.4 ELSA-2022-0143

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 33

References