Skip to content

Commit cf03d86

Browse files
committed
chore: add blogpost for CVE-2025-54571
1 parent 24b8ccb commit cf03d86

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: 'Improper error handling: CVE-2025-54571 - 2025 August'
3+
date: '2025-08-05T00:00:00+02:00'
4+
author: airween
5+
---
6+
7+
We would like to share our take on [CVE-2025-54571](https://cve.mitre.org/cgi-bin/cvename.cgi?name=2025-54571), which was published on August 5, 2025.
8+
9+
<!--more-->
10+
11+
The vulnerability was reported by Orange Tsai ([@orangetw](https://github.com/orangetw)). They discovered that the mod_security2 engine sends multiple responses or resource content if the request is in a special format.
12+
13+
The same issue had previously been reported by [@pgajdos](https://github.com/pgajdos) in [issue (#2514)](https://github.com/owasp-modsecurity/ModSecurity/issues/2514) on Github, which, unfortunately, was never properly addressed.
14+
15+
However, the comments by [@ylavic](https://github.com/ylavic) in that issue were used as a basis for the fix.
16+
17+
The CVE rating for this vulnerability is only moderate (6.9/10), but the update is definitely recommended, as it enables information extraction.
18+
19+
The issue only affects mod_security2. libmodsecurity3 and the nginx connector are not affected.
20+
21+
### Explanation
22+
23+
The problem's root cause lies in the way ModSecurity handles errors returned by a function in Apache httpd to read the request body.
24+
25+
In the `ap_hook_fixup` phase (`hook_request_late` in `mod_security2.c`), mod_security2 ignores the `AP_FILTER_ERROR` result, allowing the request to continue and causing two HTTP responses.
26+
27+
This bug only affects mod_security2, probably all versions before 2.9.12. It does not affect libmodsecurity3.
28+
29+
### Special thanks
30+
31+
Beside the mentioned participants above, we would like to thank [@theseion](https://github.com/theseion) and [@fzipi](https://github.com/fzipi) for their help.

0 commit comments

Comments
 (0)