Security Resilience

CVE-2023-24021

Trustwave Modsecurity ≤ 2.9.7

Published
20 January 2023
Modified
02 April 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.0094 62th percentile
Risk Priority 59 floored blend · peak EPSS

CVSS 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

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

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-46292Same product: Trustwave Modsecurity
CVE-2025-2026Shared CWE-170
CVE-2026-40334Shared CWE-170
CVE-2026-32837Shared CWE-170
CVE-2023-35321Shared CWE-170
CVE-2024-21442Shared CWE-170
CVE-2026-83781Shared CWE-170
CVE-2026-2239Shared CWE-170
CVE-2023-28263Shared CWE-170
CVE-2023-36907Shared CWE-170

Affected Assets

trustwave
modsecurity
≤ 2.9.7
debian
debian linux
10.0

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.

PR.PS-06 mostly match
blocks

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.

finds

Security testing in development can detect missing or incorrect null terminators before release.

prevents

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.

prevents

Secure coding standards directly require correct null termination of strings and arrays.

prevents

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.

finds

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.

References