CVE-2023-24021
Trustwave Modsecurity ≤ 2.9.7
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2023-24021 is a high-severity Improper Null Termination (CWE-170) vulnerability in Trustwave Modsecurity. Its CVSS base score is 7.5 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 38% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-28085
Vulnerability Data
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly enforce correct string/array termination via coding standards, reviews, and static analysis.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development can detect missing or incorrect null terminators before release.
Training technical developers about string-handling functions (strncpy, readlink, etc.) and null-termination requirements reduces some instances of CWE-170, but the weakness is a low-level C/C++ implementation detail that even trained developers introduce through off-by-one errors and misuse of 'safe' functions, so training moves only a minority of instances.
Secure coding standards directly require correct null termination of strings and arrays.
A.8.30 carries its effect through the secure-development practices (8.25 to 8.29) it contracts from the supplier, so a faithful implementation reduces ordinary software implementation defects like CWE-170 in delivered code, at the same `partial` rung the owner set for CWE-134 on this clause.
A.8.8's reach is disclosure-based (vendor advisories, vulnerability scanning, third-party library tracking), so it finds CWE-170 only where the null-termination defect surfaces as a published CVE in a third-party component — a minority of instances, since most CWE-170 lives in first-party source code that A.8.8 does not read.