CVE-2020-27304
Last modified
CVE-2020-27304 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 3.14% chance of exploitation in the next 30 days.
Description
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Civetweb Project | Civetweb | >= 1.8, < 1.15 |
| Siemens | Sinec Infrastructure Network Services | < 1.0.1.1 |
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
- https://groups.google.com/g/civetweb/c/yPBxNXdGgJQMailing List, Third Party Advisory
- https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/Exploit, Third Party Advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
- https://groups.google.com/g/civetweb/c/yPBxNXdGgJQMailing List, Third Party Advisory
- https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-27304?
How severe is CVE-2020-27304?
How do I fix CVE-2020-27304?
Are you affected by CVE-2020-27304?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
