cve.bz

CVE-2023-31122 Out-of-bounds Read

7.5 highEPSS 3.0%

High (7.5). EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
Out-of-bounds Read vulnerability in mod_macro of Apache HTTP Server.This issue affects Apache HTTP Server: through 2.4.57.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-09-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-31122 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-31122?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-31122?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-31122 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache HTTP Serverthrough 2.4.57

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10apache22.4.59-1~deb10u1DLA-3818-1
Debian11apache22.4.59-1~deb11u1DSA-5662-1
Debian12apache22.4.59-1~deb12u1DEBIAN-CVE-2023-31122 DSA-5662-1
Debian13, 14apache22.4.58-1DEBIAN-CVE-2023-31122
Ubuntu20.04:LTSapache22.4.41-4ubuntu3.15UBUNTU-CVE-2023-31122 USN-6506-1
Ubuntu22.04:LTSapache22.4.52-1ubuntu4.7UBUNTU-CVE-2023-31122 USN-6506-1
UbuntuPro:14.04:LTSapache22.4.7-1ubuntu4.22+esm9UBUNTU-CVE-2023-31122 USN-6510-1
UbuntuPro:16.04:LTSapache22.4.18-2ubuntu3.17+esm11UBUNTU-CVE-2023-31122 USN-6510-1
UbuntuPro:18.04:LTSapache22.4.29-1ubuntu4.27+esm1UBUNTU-CVE-2023-31122 USN-6510-1
Red Hatenterprise_linux:8::appstreamhttpd, mod_ldap, httpd-devel and 9 more0:2.4.37-64.module+el8.10.0+21332+dfb1b40eRHSA-2024:3121
Red Hatenterprise_linux:8::appstreammod_http2, mod_http2-debuginfo, mod_http2-debugsource0:1.15.7-10.module+el8.10.0+21653+eaff63f0RHSA-2024:3121
Red Hatenterprise_linux:8::appstreammod_md, mod_md-debuginfo, mod_md-debugsource1:2.0.8-8.module+el8.9.0+19080+567b90f8RHSA-2024:3121
Red Hatenterprise_linux:8::appstreammod_ssl, mod_proxy_html, mod_ssl-debuginfo and 1 more1:2.4.37-64.module+el8.10.0+21332+dfb1b40eRHSA-2024:3121
Red Hatenterprise_linux:9::appstreamhttpd, mod_lua, mod_ldap and 13 more0:2.4.57-8.el9RHSA-2024:2278
Red Hatenterprise_linux:9::appstreammod_ssl, mod_proxy_html, mod_ssl-debuginfo and 1 more1:2.4.57-8.el9RHSA-2024:2278
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.6.0-3.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.57-9.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_proxy_cluster, jbcs-httpd24-mod_proxy_cluster-debuginfo0:1.3.20-3.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.57-9.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-17.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:8.6.0-3.el8jbcsRHSA-2024:1316
4 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 7 moreapache22.4.51-150200.3.59.1SUSE-SU-2023:4431-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1apache22.4.33-150000.3.78.1SUSE-SU-2023:4432-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 moreapache22.4.66-150400.6.57.1SUSE-SU-2026:2686-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Package Hub 15 SP4 and 3 moreapache22.4.51-150400.6.14.1SUSE-SU-2023:4430-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5apache2, apache2-tls132.4.51-35.35.1SUSE-SU-2023:4451-1
openSUSELeap 15.4, Leap 15.5apache22.4.51-150400.6.14.1SUSE-SU-2023:4430-1
openSUSETumbleweedapache22.4.58-1.1openSUSE-SU-2024:13350-1
AlmaLinux8httpd, mod_ldap, httpd-devel and 4 more2.4.37-64.module_el8.10.0+3761+75f8c656ALSA-2024:3121
AlmaLinux8mod_http21.15.7-10.module_el8.10.0+3832+564e7653ALSA-2024:3121
AlmaLinux8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALSA-2024:3121
AlmaLinux8mod_md1:2.0.8-8.module_el8.6.0+3031+fb177b09ALSA-2024:3121
AlmaLinux8mod_ssl, mod_proxy_html1:2.4.37-64.module_el8.10.0+3761+75f8c656ALSA-2024:3121
AlmaLinux9httpd, mod_lua, mod_ldap and 6 more2.4.57-8.el9ALSA-2024:2278
AlmaLinux9mod_ssl, mod_proxy_html1:2.4.57-8.el9ALSA-2024:2278
Rocky Linux8httpd0:2.4.37-64.module+el8.10.0+1717+030a9fedRLSA-2024:3121
Rocky Linux8mod_http20:1.15.7-10.module+el8.10.0+1775+6b057638RLSA-2024:3121
Rocky Linux8mod_md1:2.0.8-8.module+el8.9.0+1370+89cc8ad5RLSA-2024:3121
Alpinev3.15, v3.16, v3.17 and 7 moreapache22.4.58-r0ALPINE-CVE-2023-31122
Alpaquita23, streamapache22.4.58-r0BELL-CVE-2023-31122

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw only affects configurations with mod_macro loaded and when a very long macro is configured and used, specifically a macro longer than 8191 characters. If these conditions are not present, the server is not affected and no further mitigation is needed. For more information about the mitigation, see the mitigation section below.

The httpd mod_macro module is enabled by default in Red Hat Enterprise Linux 8, 9, and in RHSCL. However, there are no macros used in the default httpd configuration.

Red Hat's mitigation

Disabling mod_macro and restarting httpd or making sure the macros used are smaller than the required length to trigger this vulnerability will mitigate this flaw. Furthermore, it's unlikely that a very long macro with the length needed to trigger this issue is being used.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.57-9.el8jbcsFixed 2024-03-18RHSA-2024:1316
JBoss Core Services on RHEL 7jbcs-httpd24-httpd-0:2.4.57-9.el7jbcsFixed 2024-03-18RHSA-2024:1316
Red Hat Enterprise Linux 8httpd:2.4-8100020240405103607.e155f54dFixed 2024-05-22RHSA-2024:3121
Red Hat Enterprise Linux 9httpd-0:2.4.57-8.el9Fixed 2024-04-30RHSA-2024:2278
Red Hat JBoss Core ServiceshttpdFixed 2024-03-18RHSA-2024:1317
OpenShift PipelineshttpdAffected
Red Hat Enterprise Linux 6httpdOut of support scope
Red Hat Enterprise Linux 7httpdOut of support scope
Red Hat JBoss Enterprise Application Platform 6httpd22Out of support scope
Red Hat OpenShift Data Science (RHODS)httpdWill not fix
Red Hat OpenShift GitOpshttpdWill not fix
Red Hat OpenStack Platform 16.1httpdNot affected
Red Hat OpenStack Platform 16.2httpdNot affected
Red Hat OpenStack Platform 17.1httpdNot affected
Red Hat OpenStack Platform 18.0httpdNot affected
Red Hat Software Collectionshttpd24-httpdWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-31122.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-133-01Hitachi Energy Service Suite2025-02-25EnergyHitachi Energy Service Suite versions 9.8.1.3 and belowHitachi Energy Service Suite version 9.8.1.4
ICSA-24-228-06Siemens SINEC NMS2024-08-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON