CVE-2024-1019

WAF bypass of the ModSecurity v3 release line

Description

ModSecurity / libModSecurity 3.0.0 to 3.0.11 is affected by a WAF bypass for path-based payloads submitted via specially crafted request URLs. ModSecurity v3 decodes percent-encoded characters present in request URLs before it separates the URL path component from the optional query string component. This results in an impedance mismatch versus RFC compliant back-end applications. The vulnerability hides an attack payload in the path component of the URL from WAF rules inspecting it. A back-end may be vulnerable if it uses the path component of request URLs to construct queries. Integrators and users are advised to upgrade to 3.0.12. The ModSecurity v2 release line is not affected by this vulnerability.

Remediation

Solution:

  • Upgrade to ModSecurity 3.0.12.

Workaround:

  • ModSecurity v3’s REQUEST_URI_RAW variable contains the full URI and is unaffected by the URL decoding step. It is therefore possible to use the REQUEST_URI_RAW variable to derive all other required variables correctly, including performing any required URL decoding.

Category

8.6
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.31%
Vendor Advisory owasp.org
Affected: OWASP ModSecurity ModSecurity
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-1019?
CVE-2024-1019 has been scored as a high severity vulnerability.
How to fix CVE-2024-1019?
To fix CVE-2024-1019: Upgrade to ModSecurity 3.0.12.
Is CVE-2024-1019 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-1019 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-1019?
CVE-2024-1019 affects OWASP ModSecurity ModSecurity.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.