cve.bz

CVE-2023-24021 Improper Null Termination

7.5 highEPSS 1.0%Fix available

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

On this page
Incorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.0% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd 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 2025-04-02. 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-170 Improper Null Termination
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-24021 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-24021?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-24021?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-24021 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 NVD's CPE matches.

ProductAffected
trustwave:modsecuritybefore 2.9.7
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10modsecurity-apache2.9.3-1+deb10u2DLA-3283-1
Debian12, 13, 14modsecurity-apache2.9.7-1DEBIAN-CVE-2023-24021
Ubuntu20.04:LTSmodsecurity-apache2.9.3-1ubuntu0.1UBUNTU-CVE-2023-24021 USN-6370-1
UbuntuPro:14.04:LTSmodsecurity-apache2.7.7-2ubuntu0.1~esm1USN-6370-1
UbuntuPro:16.04:LTSmodsecurity-apache2.9.0-1ubuntu0.1~esm1UBUNTU-CVE-2023-24021 USN-6370-1
UbuntuPro:18.04:LTSmodsecurity-apache2.9.2-1ubuntu0.1~esm1UBUNTU-CVE-2023-24021 USN-6370-1
UbuntuPro:22.04:LTSmodsecurity-apache2.9.5-1ubuntu0.1~esm1UBUNTU-CVE-2023-24021 USN-6370-1
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr, jbcs-httpd24-apr-devel, jbcs-httpd24-apr-debuginfo0:1.7.0-8.el7jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.2.1-1.el7jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.57-5.el7jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.3-29.el7jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.57-5.el7jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el8jbcs-httpd24-apr, jbcs-httpd24-apr-devel, jbcs-httpd24-apr-debuginfo0:1.7.0-8.el8jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:8.2.1-1.el8jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el8jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 8 more0:2.4.57-5.el8jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.3-29.el8jbcsRHSA-2023:4629
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html, jbcs-httpd24-mod_ssl-debuginfo and 1 more1:2.4.57-5.el8jbcsRHSA-2023:4629
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 moreapache2-mod_security22.9.2-150000.3.9.1SUSE-SU-2023:0447-1
SUSELinux Enterprise Module for Server Applications 15 SP4apache2-mod_security22.9.4-150400.3.6.1SUSE-SU-2023:0431-1
openSUSELeap 15.4apache2-mod_security22.9.4-150400.3.6.1SUSE-SU-2023:0431-1
Azure Linux2mod_securityno fix listedAZL-43843
Azure Linux3mod_security2.9.7-8AZL-44475

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; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this vulnerability as Moderate impact as a result of how mod_security is configured to be used in Red Hat products. When running with default configurations the affected program will have limited privileges and thus the impact of this flaw will be restricted beyond what the Web Application Firewall is also restricting.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.3-29.el8jbcsFixed 2023-08-15RHSA-2023:4629
JBoss Core Services on RHEL 7jbcs-httpd24-mod_security-0:2.9.3-29.el7jbcsFixed 2023-08-15RHSA-2023:4629
Red Hat Enterprise Linux 7mod_securityOut of support scope
Red Hat Enterprise Linux 8mod_securityWill not fix
Red Hat Enterprise Linux 9mod_securityWill not fix
Red Hat Software Collectionshttpd24-mod_securityWill 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-24021.

References

Check your stackJSON