OWASP libModSecurity3
cpe:2.3:a:modsecurity:modsecurity:*:*:*:*:*:*:*
- < 3.0.15
A buffer overflow vulnerability has been identified in libmodsecurity, a component of the ModSecurity v3 project. This issue arises when a rule using the 't:hexDecode' transformation inspects a query string parameter containing a single character, leading to a segmentation fault. An attacker can exploit this vulnerability to crash worker processes, causing a denial-of-service condition. All versions of libmodsecurity prior to 3.0.15 are affected. The issue has been patched in version 3.0.15.
Exploitation of this vulnerability causes a segmentation fault, crashing all worker processes. This denial-of-service condition leaves no available worker processes for legitimate users. However, service resumes once the attack stops, as the worker processes recover from the segmentation fault.
To reproduce this vulnerability, create a rule that uses the 't:hexDecode' transformation to inspect query string parameters. Then, send a request with a query string containing a single character. The server will experience a segmentation fault, crashing the worker process. This can be automated with a simple bash script that repeatedly sends the vulnerable request.
Users can upgrade to libmodsecurity version 3.0.15 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.