CVE-2023-31122 Apache HTTP Server: mod_macro buffer over-read

High 7.5 Published Updated

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.

PackageAffectedFixed in
apache BitnamiAll versions2.4.58
Linux distribution packages (39)
httpd AlmaLinux:9All versions2.4.57-8.el9
httpd-core AlmaLinux:9All versions2.4.57-8.el9
httpd-devel AlmaLinux:9All versions2.4.57-8.el9
httpd-filesystem AlmaLinux:9All versions2.4.57-8.el9
httpd-manual AlmaLinux:9All versions2.4.57-8.el9
httpd-tools AlmaLinux:9All versions2.4.57-8.el9
mod_ldap AlmaLinux:9All versions2.4.57-8.el9
mod_lua AlmaLinux:9All versions2.4.57-8.el9
mod_proxy_html AlmaLinux:9All versions1:2.4.57-8.el9
mod_session AlmaLinux:9All versions2.4.57-8.el9
mod_ssl AlmaLinux:9All versions1:2.4.57-8.el9
httpd Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-core Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-core-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-devel Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-filesystem Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-manual Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-tools Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
httpd-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_ldap Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_ldap-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_lua Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_lua-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_proxy_html Red Hat:enterprise_linux:9::appstreamAll versions1:2.4.57-8.el9
mod_proxy_html-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions1:2.4.57-8.el9
mod_session Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_session-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.4.57-8.el9
mod_ssl Red Hat:enterprise_linux:9::appstreamAll versions1:2.4.57-8.el9
mod_ssl-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions1:2.4.57-8.el9
httpd Rocky Linux:9All versions0:2.4.57-8.el9
apache2 SUSE:Enterprise Storage 7.1All versions2.4.51-150200.3.59.1
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.4.33-150000.3.78.1
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions2.4.51-150200.3.59.1
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions2.4.51-150200.3.59.1
apache2 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.4.51-150200.3.59.1
apache2 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions2.4.51-150400.6.14.1
apache2 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions2.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.

All Apache Http Server vulnerabilities

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.

Is CVE-2023-31122 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free