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


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
1% (76th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN14-CIVETWEB-11739545
  • published10 Aug 2025
  • 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:14 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:14 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