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 AP...
CriticalCVSS 9.8
EPSS 3.3%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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
Upgrade path
6 packages: 4 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/civetweb(Ubuntu 25.10) | = 1.16+dfsg-2; All versions | No fix listed | No fix yet |
| civetweb project civetweb | >= 1.8; >= 1.8, < 1.15 | 1.15 | Partially fixed |
| debian/civetweb(Debian 12) | < 1.15+dfsg-1 | 1.15+dfsg-1 | Fixed |
| debian/civetweb(Debian 13) | < 1.15+dfsg-1 | 1.15+dfsg-1 | Fixed |
| debian/civetweb(Debian 14) | < 1.15+dfsg-1 | 1.15+dfsg-1 | Fixed |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/civetweb(Debian:12) | < 1.15+dfsg-1 | 1.15+dfsg-1 |
| debian/civetweb(Debian:13) | < 1.15+dfsg-1 | 1.15+dfsg-1 |
| debian/civetweb(Debian:14) | < 1.15+dfsg-1 | 1.15+dfsg-1 |
| civetweb project civetweb | >= 1.8, < 1.15 | 1.15 |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 |
| civetweb project civetweb | >= 1.8 | No fix listed |
| ubuntu/civetweb(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/civetweb(Ubuntu:25.10) | = 1.16+dfsg-2 | No fix listed |
References
- Debian Security Tracker CVE-2020-27304 vendor-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com patch third-party-advisory
- groups.google.com mailing-list third-party-advisory
- jfrog.com exploit third-party-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking