CVE-2020-27304

civetweb: directory traversal when using the built-in example HTTP form-based file upload mechanism via the mg_handle_form_request API

Published Oct 21, 2021 CVSS 3.1 · 9.8 Critical EPSS 3.3% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-19817 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
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
VDOO
Published
Updated
Aug 4, 2024, 4:11 PM
Reserved
Oct 19, 2020, 12:00 AM
Status
Modified
Published
Oct 21, 2021, 4:15 PM
Modified
Jun 17, 2026, 3:09 AM
Severity
Important
Public date
Oct 18, 2021, 12:00 AM