Skip to main content
Public proof of conceptFix available

CVE-2025-48866

ModSecurity has possible DoS vulnerability in sanitiseArg action

A public proof of concept exists; no exploitation attested.

  • Published2025-06-02
  • Fixed in3.0.12
  • WeaknessCWE-1050

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Versions prior to 2.9.10 contain a denial of service vulnerability similar to GHSA-859r-vvv8-rm8r/CVE-2025-47947. The `sanitiseArg` (and `sanitizeArg` - this is the same action but an alias) is vulnerable to adding an excessive number of arguments, thereby leading to denial of service. Version 2.9.10 fixes the issue. As a workaround, avoid using rules that contain the `sanitiseArg` (or `sanitizeArg`) action.

Timeline

dates in UTC
  1. 2025-06-0216:15CVE publishedNVD

Versions per branch

OSV · NVD
modsecurity
BranchAffectedFixed in
3.0< 3.0.123.0.12
Owasp modsecurity
BranchAffectedFixed in
2.9< 2.9.102.9.10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • owasp-modsecurity ModSecurity
    Affected
    • = < 2.9.10no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-06-02

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-mod_securityMageia:9all versions · fixed in 2.9.7-1.1.mga9
  • apache2-mod_security2SUSE:Manager Server 4.3all versions · fixed in 2.9.4-150400.3.9.1
  • apache2-mod_security2SUSE:Manager Proxy 4.3all versions · fixed in 2.9.4-150400.3.9.1
  • apache2-mod_security2SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5all versions · fixed in 2.8.0-7.9.1
  • apache2-mod_security2SUSE:Linux Enterprise Server for SAP Applications 15 SP5all versions · fixed in 2.9.4-150400.3.9.1
  • apache2-mod_security2SUSE:Linux Enterprise Server for SAP Applications 15 SP4all versions · fixed in 2.9.4-150400.3.9.1
  • apache2-mod_security2SUSE:Linux Enterprise Server for SAP Applications 15 SP3all versions · fixed in 2.9.2-150000.3.12.1
  • apache2-mod_security2SUSE:Linux Enterprise Server 15 SP5-LTSSall versions · fixed in 2.9.4-150400.3.9.1

37 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-48866 Red Hat Product Security84 products fixed · 6 known affected

    mod_security: ModSecurity Denial of Service Vulnerability

    mod_security-mlogc as a component of Red Hat Enterprise Linux 7 · mod_security.src as a component of Red Hat Enterprise Linux 7 · mod_security as a component of Red Hat Enterprise Linux 8 · +3 more

  • RHSA-2025:13775 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: mod_security security update

  • RHSA-2025:13716 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: mod_security security update

  • RHSA-2025:13670 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: mod_security security update

  • RHSA-2025:12838 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: mod_security security update

Full record on NVD

Fix

  1. Update modsecurity to 3.0.12
  2. Vendor fix Red Hat Product Security RHSA-2025:13775 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2025:13775 · 21 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix available, says the vendor Red Hat Product Security CVE-2025-48866 · 6 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2025-06-02
  • CNACVSS 3.17.5known since 2026-10-23
  • CNAweakness (CWE)CWE-1050known since 2026-10-23
  • FIRST EPSSEPSS score0.9 %2026-12-04
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2025-06-02
Last modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2025-48866?

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Versions prior to 2.9.10 contain a denial of service vulnerability similar to GHSA-859r-vvv8-rm8r/CVE-2025-47947. The `sanitiseArg` (and `sanitizeArg` - this is the same action but an alias) is vulnerable to adding an excessive number of arguments, thereby leading to denial of service. Version 2.9.10 fixes the issue. As a workaround, avoid using rules that contain the `sanitiseArg` (or `sanitizeArg`) action.

Is CVE-2025-48866 actively exploited?

A proof-of-concept exploit exists for CVE-2025-48866, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-48866?

CVE-2025-48866 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running modsecurity? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record