CVE-2020-27304
Civetweb Project Civetweb vulnerability
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Civetweb, Sinec Infrastructure Network Services. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Civetweb Project Civetweb runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf · Patch
- groups.google.com/g/civetweb/c/yPBxNXdGgJQ · Third Party Advisory
- jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/ · Exploit
- cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- nvd.nist.gov/vuln/detail/CVE-2020-27304
- cve.org/CVERecord?id=CVE-2020-27304
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.