CVE-2023-31122 Apache HTTP Server: mod_macro buffer over-read
An out-of-bounds read in Apache HTTP Server's mod_macro module can lead to denial of service or information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-31122?
CVE-2023-31122 is a high-severity memory corruption vulnerability in Apache Http Server, published on 23 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Out-of-bounds Read vulnerability in mod_macro of Apache HTTP Server.This issue affects Apache HTTP Server: through 2.4.57.
Weakness: CWE-125
Which versions are affected by CVE-2023-31122?
1 open source package ship an affected version, including apache. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
apache Bitnami | All versions | 2.4.58 |
Linux distribution packages (39)
httpd AlmaLinux:9 | All versions | 2.4.57-8.el9 |
httpd-core AlmaLinux:9 | All versions | 2.4.57-8.el9 |
httpd-devel AlmaLinux:9 | All versions | 2.4.57-8.el9 |
httpd-filesystem AlmaLinux:9 | All versions | 2.4.57-8.el9 |
httpd-manual AlmaLinux:9 | All versions | 2.4.57-8.el9 |
httpd-tools AlmaLinux:9 | All versions | 2.4.57-8.el9 |
mod_ldap AlmaLinux:9 | All versions | 2.4.57-8.el9 |
mod_lua AlmaLinux:9 | All versions | 2.4.57-8.el9 |
mod_proxy_html AlmaLinux:9 | All versions | 1:2.4.57-8.el9 |
mod_session AlmaLinux:9 | All versions | 2.4.57-8.el9 |
mod_ssl AlmaLinux:9 | All versions | 1:2.4.57-8.el9 |
httpd Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-core Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-core-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-filesystem Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-manual Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-tools Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
httpd-tools-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_ldap Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_ldap-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_lua Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_lua-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_proxy_html Red Hat:enterprise_linux:9::appstream | All versions | 1:2.4.57-8.el9 |
mod_proxy_html-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:2.4.57-8.el9 |
mod_session Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_session-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.57-8.el9 |
mod_ssl Red Hat:enterprise_linux:9::appstream | All versions | 1:2.4.57-8.el9 |
mod_ssl-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:2.4.57-8.el9 |
httpd Rocky Linux:9 | All versions | 0:2.4.57-8.el9 |
apache2 SUSE:Enterprise Storage 7.1 | All versions | 2.4.51-150200.3.59.1 |
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.4.33-150000.3.78.1 |
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.4.51-150200.3.59.1 |
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.4.51-150200.3.59.1 |
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.4.51-150200.3.59.1 |
apache2 SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 2.4.51-150400.6.14.1 |
apache2 SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 2.4.51-150400.6.14.1 |
Products include Apache Http Server, Debian Debian Linux, Fedoraproject Fedora.
How do I fix CVE-2023-31122?
Upgrade apache to 2.4.58 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-31122 being exploited?
There is no known exploitation of CVE-2023-31122 in the wild and no public exploit code.
Other vulnerabilities in Apache Http Server
Sources
Also known as ALPINE-CVE-2023-31122, ALSA-2024:2278, BELL-CVE-2023-31122, BIT-apache-2023-31122, CLEANSTART-2026-QG85837, CLSA-2023-1698948956 and 15 more.