CVE-2024-1019
NixOS vulnerability analysis and mitigation

Overview

ModSecurity / libModSecurity versions 3.0.0 to 3.0.11 is affected by a WAF bypass vulnerability (CVE-2024-1019) discovered in January 2024. The vulnerability allows attackers to bypass Web Application Firewall (WAF) rules by submitting specially crafted request URLs. The issue stems from ModSecurity v3's incorrect handling of URL decoding, where it decodes percent-encoded characters in URLs before separating the URL path from the query string component (OWASP Advisory).

Technical details

The vulnerability occurs because ModSecurity v3 performs URL decoding before separating the URL path component from the query string component, creating an impedance mismatch with RFC-compliant back-end applications. This allows attackers to use percent-encoded question marks ("%3F") to manipulate how ModSecurity identifies the position of the query component, enabling them to hide attack payloads in the URL path and bypass WAF rules. The vulnerability has been assigned a CVSS 3.1 score of 8.6 (HIGH) with attack complexity: low, attack vector: network, and integrity impact: high (OWASP Advisory).

Impact

The vulnerability affects ModSecurity variables REQUEST_FILENAME and REQUEST_BASENAME, which are used for path inspection. Rules relying on these variables may be rendered ineffective against exploits. If a backend application uses path components as query parameters, it may be vulnerable to various attacks including SQL injection and Remote Command Execution (RCE), as the WAF protection is effectively bypassed (OWASP Advisory, SecurityOnline).

Mitigation and workarounds

Users are strongly advised to upgrade to ModSecurity version 3.0.12, which fixes the vulnerability by modifying the request URI processing to separate URL components before performing URL decoding. For systems unable to upgrade immediately, a workaround exists using the REQUEST_URI_RAW variable, which remains unaffected by the URL decoding step. However, this workaround may be cumbersome and could generate false positives with existing rules (OWASP Advisory).

Community reactions

The vulnerability was initially discovered by the OWASP CRS team who reported it to Trustwave Spiderlabs in November 2023. After initial rejection and subsequent acknowledgment of the security impact, the fix was developed and the ModSecurity project was transferred from Trustwave to OWASP. The security community has shown significant interest in this vulnerability, leading to rapid patch adoption and distribution through various channels including Fedora's security updates (OWASP Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management