Skip to content
OpenAdvisories
Unscored CVE-2020-27304 EUVD-2020-19817GHSA-wphm-mh7c-38cf

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…

Published Oct 21, 2021 · Updated Aug 4, 2024 · 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

Affected products

VendorProductAffectedFixed
civetweb_project civetweb 1.8 – < unspecified unspecified

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 civetweb 1.15+dfsg-1 —
Debian 13 civetweb 1.15+dfsg-1 —
Debian 12 civetweb 1.15+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 civetweb No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 civetweb 1.15-lp152.2.3.1 openSUSE-SU-2021:1424-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 ceph 18.2.1-1 —

Advisories 5

References