CVE-2024-1019WAF bypass of the ModSecurity v3 release line
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | modsecurity | Fix pending | UBUNTU-CVE-2024-1019 | |
| Ubuntu 26.04 | modsecurity | Under investigation | UBUNTU-CVE-2024-1019 | |
| Ubuntu 25.10 | modsecurity | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-1019 | |
| Ubuntu 24.04 | modsecurity | Under investigation | UBUNTU-CVE-2024-1019 | |
| Ubuntu 22.04 | modsecurity | Under investigation | UBUNTU-CVE-2024-1019 | |
| Ubuntu 20.04 | modsecurity | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-1019 | |
| Debian 14 | modsecurity | Fixed | 3.0.12-1 | DEBIAN-CVE-2024-1019 |
| Debian 13 | modsecurity | Fixed | 3.0.12-1 | DEBIAN-CVE-2024-1019 |
| Debian 12 | modsecurity | Fix pending | DEBIAN-CVE-2024-1019 |
What the vendor says
As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OWASP ModSecurity ModSecurity: affected: 3.0.0 to 3.0.11
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.
References
- https://owasp.org/www-project-modsecurity/tab_cves#cve-2024-1019-2024-01-30
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/34KDQNZE2RS3CWFG5654LNHKXXDPIW5I/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K6ZGABPJK2JPVH2JDFHZ5LQLWGONUH7V/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.