Skip to content
OpenAdvisories
High · 7.5 CVE-2023-24021 EUVD-2023-28085GHSA-845r-7x4c-q8qf

Incorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer ove…

Published Jan 20, 2023 · Updated Apr 2, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 modsecurity-apache 2.9.7-1 —
Debian 13 modsecurity-apache 2.9.7-1 —
Debian 12 modsecurity-apache 2.9.7-1 —
Debian 10 modsecurity-apache 2.9.3-1+deb10u2 DLA-3283-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS modsecurity-apache 2.9.3-1ubuntu0.1 USN-6370-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS modsecurity-apache 2.9.5-1ubuntu0.1~esm1 USN-6370-1
Ubuntu Pro 18.04 LTS modsecurity-apache 2.9.2-1ubuntu0.1~esm1 USN-6370-1
Ubuntu Pro 16.04 LTS modsecurity-apache 2.9.0-1ubuntu0.1~esm1 USN-6370-1
Ubuntu Pro 14.04 LTS modsecurity-apache 2.7.7-2ubuntu0.1~esm1 USN-6370-1
ReleasePackageFixed inAdvisory
Red Hat JBoss Core Services 1 jbcs-httpd24-apr +1 1.7.0-8.el7jbcs RHSA-2023:4629
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 8.2.1-1.el7jbcs RHSA-2023:4629
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.57-5.el7jbcs RHSA-2023:4629
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_security 2.9.3-29.el7jbcs RHSA-2023:4629
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.57-5.el7jbcs RHSA-2023:4629
ReleasePackageFixed inAdvisory
SLES 15 SP4 apache2-mod_security2 2.9.4-150400.3.6.1 SUSE-SU-2023:0431-1
SLES 15 SP3 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLES 15 SP2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLES 15 SP1 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLES for SAP 15 SP2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLES for SAP 15 SP1 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLE Real Time 15 SP3 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLE HPC 15 SP3 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLE HPC 15 SP2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SLE HPC 15 SP1 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SUSE Manager Server 4.2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SUSE Manager Retail Branch Server 4.2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SUSE Manager Proxy 4.2 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SUSE Enterprise Storage 7.1 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
SUSE Enterprise Storage 7 apache2-mod_security2 2.9.2-150000.3.9.1 SUSE-SU-2023:0447-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 apache2-mod_security2 2.9.4-150400.3.6.1 SUSE-SU-2023:0431-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 mod_security +1 2.9.7-1.amzn2.0.1 ALAS2-2023-2098

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 mod_security 2.9.7-8 —
Azure Linux 2 (CBL-Mariner) mod_security No fix yet —

Advisories 9

References