CVE-2020-27304 in Civetweb Project Civetweb and 4 more products
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
Affects 5 products from 2 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Civetweb Project | Civetweb | ≥ 1.8, < 1.15 |
| Siemens | SINEC Infrastructure Network Services | < 1.0.1.1 |
| Siemens | SINEC Ins | < 1.0.1.1 |
| Siemens | SCALANCE LPE9403 (device and firmware) | < 2.0 |
Fix and vendor advisory
- SINEC INS: Update to V1.0.1.1 or later version
Source: ICSA-22-069-09
- SCALANCE LPE9403: Update to V2.0 or later version
Source: ICSA-22-167-09
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2020-27304 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-190245-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-10-21 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict input validation for file uploads, ensuring that filenames do not contain directory traversal sequences. Use a whitelist approach to restrict allowed characters and paths.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.