Skip to content

Possible DoS vulnerability in sanitiseArg action

High
airween published GHSA-f82j-8pp7-cw2w Jun 2, 2025

Package

No package listed

Affected versions

< 2.9.9

Patched versions

2.9.10

Description

Impact

After discovering the GHSA-859r-vvv8-rm8r vulnerability, we reviewed and investigated other activities to uncover similar opportunities.

During this code review we found a similar issue: the sanitiseArg (and sanitizeArg - this is the same action but an alias) action's behavior is the same - except in case of this action the rule writer must pass an argument to the action, eg.

SecRule ... "...,sanitiseArg:password..."

where only the passed argument will be sanitized. See the reference:

https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#sanitisearg

Patches

Patch is available and will be applied soon. The new version (2.9.10) will contain it.

Workarounds

If none of the rules contain sanitiseArg (or sanitizeArg) action, then the engine does not affected. Otherwise no workaround known.

References

Not yet.

How to reproduce

Consider a rule:

SecRule ARGS "@rx \d{3,6}" "phase:2,id:1,log,capture,block,sanitiseArg:password"

and a request:

curl -v -X POST -d "password=12345&password=12345&password=12345" http://localhost:80/

For example, if the number of arguments named password is 500, the engine will store their names in memory 500 * 500 times, which is 250 000 copies.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2025-48866

Weaknesses

Credits