Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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