CVEfocus › CVE database › CVE-2024-1019

CVE-2024-1019WAF bypass of the ModSecurity v3 release line

CVSS 8.6 HighEPSS 0.7% (higher than 53% of CVEs)Published 2024-01-30Updated 2025-06-17Assigner: NCSC.ch

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.

CWE-20

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

2Fixed
2Fix pending
3Under investigation
2Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modsecurityFix pendingUBUNTU-CVE-2024-1019
Ubuntu 26.04modsecurityUnder investigationUBUNTU-CVE-2024-1019
Ubuntu 25.10modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1019
Ubuntu 24.04modsecurityUnder investigationUBUNTU-CVE-2024-1019
Ubuntu 22.04modsecurityUnder investigationUBUNTU-CVE-2024-1019
Ubuntu 20.04modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1019
Debian 14modsecurityFixed3.0.12-1DEBIAN-CVE-2024-1019
Debian 13modsecurityFixed3.0.12-1DEBIAN-CVE-2024-1019
Debian 12modsecurityFix pendingDEBIAN-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.

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

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.