Directory Traversal Affecting civetweb package, versions <1.15+dfsg-1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
3.27% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-CIVETWEB-5678061
  • published2 Nov 2021
  • disclosed21 Oct 2021

Introduced: 21 Oct 2021

CVE-2020-27304  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Debian:13 civetweb to version 1.15+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream civetweb package and not the civetweb package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1