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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-27297The affected product is vulnerable to a heap-based buffer ov…9.8
- CVE-2020-27298Philips Interventional Workspot (Release 1.3.2, 1.4.0, 1.4.1…6.5
- CVE-2020-27299The affected product is vulnerable to an out-of-bounds read,…9.1
- CVE-2020-2730Vulnerability in the Oracle Financial Services Revenue Manag…5.4
- CVE-2020-27301A stack buffer overflow in Realtek RTL8710 (and other Ameba-…8
- CVE-2020-27302A stack buffer overflow in Realtek RTL8710 (and other Ameba-…8
- CVE-2020-2731Vulnerability in the Core RDBMS component of Oracle Database…3.9
- CVE-2020-2732A flaw was discovered in the way that the KVM hypervisor han…6.8
- CVE-2020-2733Vulnerability in the JD Edwards EnterpriseOne Tools product …9.8
- CVE-2020-27336An issue was discovered in Treck IPv6 before 6.0.1.68. Impro…5.3
- CVE-2020-27337An issue was discovered in Treck IPv6 before 6.0.1.68. Impro…7.3
- CVE-2020-27338An issue was discovered in Treck IPv6 before 6.0.1.68. Impro…7.1
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
