civetweb is vulnerable to directory traversal. The vulnerability exists due to lack of sanitization of uploaded filepaths 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.