Name
civetweb
Version
1.12+git
Type
library
Description
Civetweb embedded web server
Licenses
MIT
PURL
-
CPE
cpe:2.3:*:civetweb_project:civetweb:1.12+gitX:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
Make parsing of URL encoded forms more robust
bel2125 <bel2125@gmail.com>
CVE-2025-9648
2
Unittest: Link librt and libm using -l option
Khem Raj <raj.khem@gmail.com>
3
Sanitize upload filename like URL
bel2125 <bel2125@gmail.com>
CVE-2020-27304
4
handle_form example: Upload to temporary directory and do
bel2125 <bel2125@gmail.com>
CVE-2020-27304
Vulnerabilities#
Name
Analysis
Description
Patched
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.
Patched
The CivetWeb web library does not validate uploaded filepaths when running on an OS other than Windows, when using the built-in HTTP form-based file upload mechanism, via the mg_handle_form_request API. Web applications that use the file upload form handler, and use parts of the user-controlled filename in the output path, are susceptible to directory traversal