CVE-2023-24021: High severity Trustwave ModSecurity vulnerability

Published Jan 20, 2023
·
Updated

In ModSecurity before 2.9.7, FILESTMPCONTENT sometimes lacked the complete content. This can lead to a Web Application Firewall bypass.

https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334 https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7 https://github.com/SpiderLabs/ModSecurity/pull/2857

Other sources

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 FILESTMPCONTENT collection.

Ubuntu

Affected Software

9 affected componentsFixes available
ubuntu/modsecurity-apache<2.9.2-1ubuntu0.1~
2.9.2-1ubuntu0.1~
ubuntu/modsecurity-apache<2.9.3-1ubuntu0.1
2.9.3-1ubuntu0.1
ubuntu/modsecurity-apache<2.9.5-1ubuntu0.1~
2.9.5-1ubuntu0.1~
ubuntu/modsecurity-apache<2.9.0-1ubuntu0.1~
2.9.0-1ubuntu0.1~
ubuntu/modsecurity-apache<2.9.7-1
2.9.7-1
redhat/ModSecurity<2.9.7
2.9.7
debian/modsecurity-apache<=2.9.3-1+deb10u1, <=2.9.3-3+deb11u1
2.9.3-1+deb10u22.9.3-3+deb11u22.9.7-1
Trustwave ModSecurity<2.9.7
Debian Debian Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.2-1ubuntu0.1~
  2. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.3-1ubuntu0.1
  3. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.5-1ubuntu0.1~
  4. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.0-1ubuntu0.1~
  5. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.7-1
  6. Upgrade

    Upgrade debian/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.3-1+deb10u2Fixed in 2.9.3-3+deb11u2Fixed in 2.9.7-1
  7. Upgrade

    Upgrade redhat/ModSecurity to a version that resolves this vulnerability.

    Fixed in 2.9.7
  8. Upgrade

    Upgrade SpiderLabs/ModSecurity to a version that resolves this vulnerability.

    Fixed in 2.9.7
  9. Compensating control

    If you cannot upgrade immediately from ModSecurity before 2.9.7, mitigate potential Web Application Firewall bypasses and buffer over-reads by adding/adjusting compensating WAF controls (e.g., rules/filters) to prevent exploitation of file-upload handling that affects the FILES_TMP_CONTENT collection.

Event History

Jan 20, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Jan 24, 2023
Data Sourced
via Red Hat·04:59 AM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:16 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-24021?

CVE-2023-24021 is a vulnerability in ModSecurity before 2.9.7 that allows for Web Application Firewall bypasses and buffer over-reads when handling '\0' bytes in file uploads.

2

How does CVE-2023-24021 affect ModSecurity?

CVE-2023-24021 affects ModSecurity versions before 2.9.7, allowing for Web Application Firewall bypasses and buffer over-reads.

3

What is the severity of CVE-2023-24021?

The severity of CVE-2023-24021 is medium (CVSS score of 4).

4

How do I fix CVE-2023-24021?

To fix CVE-2023-24021, update ModSecurity to version 2.9.7 or later.

5

Where can I find more information about CVE-2023-24021?

You can find more information about CVE-2023-24021 on the official ModSecurity GitHub page and the provided references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203