CVE-2020-27304
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
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.24%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 3.24% probability · 88th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-23, CWE-22
- Affected
- civetweb project/civetweb · siemens/sinec infrastructure network services
- Source
- vuln@vdoo.com
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- 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-222547.pdf
- 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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.