CVE-2020-27304

published 21 Oct 2021 · updated 16 Nov 2026

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

9.8CriticalCVSS 9.8EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in unspecified.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
civetweb_project>=1.8 <unspecifiedunspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-27304 severity on Zeptric[![CVE-2020-27304](https://zeptric.io/badge/cve/CVE-2020-27304.svg)](https://zeptric.io/cve/CVE-2020-27304)