# CVE-2023-24021: 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: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 63% of CVEs (2026-12-01)
- Published: 2023-01-20T00:00:00.000Z
- Modified: 2026-09-08T08:48:13.899Z
- Also known as: BIT-MODSECURITY-2023-24021, BIT-MODSECURITY2-2023-24021
- Weaknesses: CWE-170
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- trustwave modsecurity: before 2.9.7
- debian debian_linux: 10.0
- modsecurity (Bitnami): before 2.9.7
- modsecurity2 (Bitnami): before 2.9.7

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7> (article, release-notes)
- <https://github.com/SpiderLabs/ModSecurity/pull/2857> (fix, issue-tracking, patch)
- <https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334> (fix, patch)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00023.html> (advisory, 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-24021> (web)

## Sources

- CVE List: [CVE-2023-24021](https://www.cve.org/CVERecord?id=CVE-2023-24021), CVE Terms of Use, modified 2025-04-02
- NVD: [CVE-2023-24021](https://nvd.nist.gov/vuln/detail/CVE-2023-24021), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MODSECURITY-2023-24021](https://osv.dev/vulnerability/BIT-MODSECURITY-2023-24021), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MODSECURITY2-2023-24021](https://osv.dev/vulnerability/BIT-MODSECURITY2-2023-24021), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-24021 · Whole record: https://cve.day/CVE-2023-24021.json · Rebuilt by cve.day 2026-11-25T22:58:21.688Z
