Path Traversal in Civetweb Project
CVE-2020-27304
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
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.032 (88.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 88.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.032 · newest: 0.032 · change: 0.000
Affected products
- Civetweb Project — versions 1.15, 1.8
- Siemens Sinec Infrastructure Network Services
Weakness classification (CWE)
References
- jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-serv… (Exploit, Third Party Advisory)
- groups.google.com/g/civetweb/c/yPBxNXdGgJQ (Mailing List, Third Party Advisory)
- cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf (Patch, Third Party Advisory)
- cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
Frequently asked questions
- What is CVE-2020-27304?
- CVE-2020-27304 is a critical-severity vulnerability in Civetweb Project, classified under Relative Path Traversal. CVSS score: 9.8/10. Published 2021-10-21.
- How severe is CVE-2020-27304?
- Critical severity. CVSS v3 base score is 9.8 out of 10.