Description
A vulnerability in the CivetWeb library's function mg_handle_form_request allows remote attackers to trigger a denial of service (DoS) condition. By sending a specially crafted HTTP POST request containing a null byte in the payload, the server enters an infinite loop during form data parsing. Multiple malicious requests will result in complete CPU exhaustion and render the service unresponsive to further requests. This issue was fixed in commit 782e189. This issue affects only the library, standalone executable pre-built by vendor is not affected.
Problem types
CWE-158 Improper Neutralization of Null Byte or NUL Character
Product status
Any version before 1.08
1.08 before 1.10
1.10
Credits
Artur Łącki
References
cert.pl/en/posts/2025/09/CVE-2025-9648
github.com/civetweb/civetweb
github.com/civetweb/civetweb/issues/1348
github.com/...ommit/782e18903515f43bafbf2e668994e82bdfa51133