# 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-b…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.27%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-21T15:42:23.000Z
- Modified: 2026-06-17T03:09:08.483Z
- Weaknesses: CWE-22, CWE-23
- Assigned by: VDOO

## 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

(As written by CVE List.)

## Affected

- civetweb_project civetweb: from 1.8 before unspecified; from 1.8 before 1.15 (not affected: from 1.15 before unspecified)
- siemens sinec_infrastructure_network_services: before 1.0.1.1

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://jfrog.com/blog/cve-2020-27304-rce-via-directory-traversal-in-civetweb-http-server/> (exploit, third-party-advisory)
- <https://groups.google.com/g/civetweb/c/yPBxNXdGgJQ> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf>

## Sources

- CVE List: [CVE-2020-27304](https://www.cve.org/CVERecord?id=CVE-2020-27304), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-27304](https://nvd.nist.gov/vuln/detail/CVE-2020-27304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-27304 · Whole record: https://cve.day/CVE-2020-27304.json · Rebuilt by cve.day 2026-11-25T22:57:58.428Z
