{"answers":{"affected":"1 open source package ship an affected version, including apache. It affects 3 products.","exploited":"There is no known exploitation of CVE-2023-31122 in the wild and no public exploit code.","fix":"Upgrade apache to 2.4.58 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-31122 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2023-31122 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apache (Bitnami): affected all versions; fixed in 2.4.58\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-31122/ (Markdown: https://insights.sbomify.com/CVE-2023-31122/index.md)","id":"CVE-2023-31122","markdown":"https://insights.sbomify.com/CVE-2023-31122/index.md","name":"CVE-2023-31122","record":{"aliases":["ALPINE-CVE-2023-31122","ALSA-2024:2278","BELL-CVE-2023-31122","BIT-apache-2023-31122","CLEANSTART-2026-QG85837","CLSA-2023-1698948956","CLSA-2023-1698949146","CLSA-2023-1698949348","CLSA-2023-1698949430","CLSA-2023-1698949696","DEBIAN-CVE-2023-31122","GHSA-xw7g-pw64-xph3","OESA-2023-1790","RHSA-2024:2278","RLSA-2024:2278","SUSE-SU-2023:4430-1","SUSE-SU-2023:4431-1","SUSE-SU-2023:4432-1","SUSE-SU-2023:4451-1","UBUNTU-CVE-2023-31122","USN-6510-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache HTTP Server","requires_auth":"none","summary":"An out-of-bounds read in Apache HTTP Server's mod_macro module can lead to denial of service or information disclosure.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"http_server","vendor":"apache"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"Out-of-bounds Read vulnerability in mod_macro of Apache HTTP Server.This issue affects Apache HTTP Server: through 2.4.57.","ecosystems":["AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP4","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Server Applications 15 SP4","SUSE:Linux Enterprise Module for Server Applications 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache HTTP Server: mod_macro buffer over-read","id":"CVE-2023-31122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:http_server","products":["apache:http_server","debian:debian_linux","fedoraproject:fedora"],"type":"memory_corruption","year":"2023"},"n_packages":60,"n_references":6,"next":{"headline":"effectindex/tripreporter vulnerable to improper password verification on POST `/api/v1/account/login`","id":"CVE-2023-31123"},"packages":[{"ecosystem":"Bitnami","fixed":["2.4.58"],"introduced":["0"],"last_affected":[],"package":"apache","purl":"pkg:bitnami/apache","source":"BIT-apache-2023-31122"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/almalinux/httpd","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-core","purl":"pkg:rpm/almalinux/httpd-core","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/almalinux/httpd-devel","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-filesystem","purl":"pkg:rpm/almalinux/httpd-filesystem","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/almalinux/httpd-manual","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/almalinux/httpd-tools","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/almalinux/mod_ldap","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_lua","purl":"pkg:rpm/almalinux/mod_lua","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/almalinux/mod_proxy_html","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/almalinux/mod_session","source":"ALSA-2024:2278"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/almalinux/mod_ssl","source":"ALSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/redhat/httpd","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-core","purl":"pkg:rpm/redhat/httpd-core","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-core-debuginfo","purl":"pkg:rpm/redhat/httpd-core-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-debuginfo","purl":"pkg:rpm/redhat/httpd-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-debugsource","purl":"pkg:rpm/redhat/httpd-debugsource","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/redhat/httpd-devel","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-filesystem","purl":"pkg:rpm/redhat/httpd-filesystem","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/redhat/httpd-manual","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/redhat/httpd-tools","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd-tools-debuginfo","purl":"pkg:rpm/redhat/httpd-tools-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/redhat/mod_ldap","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ldap-debuginfo","purl":"pkg:rpm/redhat/mod_ldap-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_lua","purl":"pkg:rpm/redhat/mod_lua","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_lua-debuginfo","purl":"pkg:rpm/redhat/mod_lua-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/redhat/mod_proxy_html","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html-debuginfo","purl":"pkg:rpm/redhat/mod_proxy_html-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/redhat/mod_session","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_session-debuginfo","purl":"pkg:rpm/redhat/mod_session-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/redhat/mod_ssl","source":"RHSA-2024:2278"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"mod_ssl-debuginfo","purl":"pkg:rpm/redhat/mod_ssl-debuginfo","source":"RHSA-2024:2278"},{"ecosystem":"Rocky Linux:9","fixed":["0:2.4.57-8.el9"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/rocky-linux/httpd?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2024:2278"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.4.51-150200.3.59.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4431-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["2.4.33-150000.3.78.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:4432-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["2.4.51-150200.3.59.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4431-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["2.4.51-150200.3.59.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4431-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.4.51-150200.3.59.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4431-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["2.4.51-150400.6.14.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:4430-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["2.4.51-150400.6.14.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2023:4430-1"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2023-31116"},"products":["Apache HTTP Server"],"published":"2023-10-23","related":[{"cvss_score":9.8,"headline":"Apache HTTP Server Path Traversal","id":"CVE-2021-42013","kev_date_added":"2021-11-03","published":"2021-10-07"},{"cvss_score":9.1,"headline":"Apache HTTP Server Improper Escaping of Output","id":"CVE-2024-38475","kev_date_added":"2025-05-01","published":"2024-07-01"},{"cvss_score":9,"headline":"Apache HTTP Server-Side Request Forgery (SSRF)","id":"CVE-2021-40438","kev_date_added":"2021-12-01","published":"2021-09-16"},{"cvss_score":7.8,"headline":"Apache HTTP Server Privilege Escalation","id":"CVE-2019-0211","kev_date_added":"2021-11-03","published":"2019-04-08"},{"cvss_score":7.5,"headline":"Apache HTTP Server Path Traversal","id":"CVE-2021-41773","kev_date_added":"2021-11-03","published":"2021-10-05"},{"cvss_score":10,"headline":"Use after free in n/a","id":"CVE-2010-0425","kev_date_added":null,"published":"2010-03-05"},{"cvss_score":10,"headline":"Auth bypass in n/a","id":"CVE-2005-2700","kev_date_added":null,"published":"2005-09-06"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"An out-of-bounds read in Apache HTTP Server's mod_macro module can lead to denial of service or information disclosure.","url":"https://insights.sbomify.com/CVE-2023-31122/"}