CVE-2023-24021
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.97% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-MODSECURITY-2023-24021BIT-MODSECURITY2-2023-24021

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
trustwave modsecuritybefore 2.9.7NVD
debian debian_linux10.0NVD
modsecurity (Bitnami)before 2.9.7Bitnami Vulnerability Database
modsecurity2 (Bitnami)before 2.9.7Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-170

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El manejo incorrecto de los bytes '\0' en las cargas de archivos en ModSecurity anteriores a 2.9.7 puede permitir omisiones del Firewall de aplicaciones web y sobrelecturas del búfer en el Firewall de aplicaciones web al ejecutar reglas que leen la colección FILES_TMP_CONTENT.

References

https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7article, release-notes
https://github.com/SpiderLabs/ModSecurity/pull/2857fix, issue-tracking, patch
https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334fix, patch
https://lists.debian.org/debian-lts-announce/2023/01/msg00023.htmladvisory, mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WCH6JM4I4MD4YABYFHSBDDOUFDGIFJKL/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52TGCZCOHYBDCVWJYNN2PS4QLOHCXWTQ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYRTXTOQQI6SB2TLI5QXU76DURSLS4XI/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2023-24021web

Sources

SourceRecordLicence
CVE ListCVE-2023-24021 changed 2025-04-02CVE Terms of Use
NVDCVE-2023-24021 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MODSECURITY-2023-24021 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-MODSECURITY2-2023-24021 changed 2026-09-08Apache-2.0