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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | modsecurity-apache | 2.9.3-1ubuntu0.1 | USN-6370-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | apache2-mod_security2 | 2.9.4-150400.3.6.1 | SUSE-SU-2023:0431-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | mod_security +1 | 2.9.7-1.amzn2.0.1 | ALAS2-2023-2098 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | mod_security | 2.9.7-8 | — |
| Azure Linux 2 (CBL-Mariner) | mod_security | No fix yet | — |
Advisories 9
- WID-SEC-2023-2031 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- RHSA-2023:4629 Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 security update Red Hat Security Advisories (RHSA) · Sep 21, 2026
- USN-6370-1 modsecurity-apache vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-3283-1 modsecurity-apache - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2023:0447-1 Security update for apache2-mod_security2 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0899 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 9, 2025
- SUSE-SU-2023:0431-1 Security update for apache2-mod_security2 SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-0188 Trustwave ModSecurity: Mehrere Schwachstellen ermöglichen Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Jan 29, 2025
- ALAS2-2023-2098 Important: mod_security security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 29, 2023
References
- https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7
- https://github.com/SpiderLabs/ModSecurity/pull/2857
- https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334
- [debian-lts-announce] 20230126 [SECURITY] [DLA 3283-1] modsecurity-apache security update mailing-list
- FEDORA-2023-8aa264d5c5 vendor-advisory
- FEDORA-2023-09f0496e60 vendor-advisory
- FEDORA-2023-bc61f7a145 vendor-advisory