Directory Traversal Affecting zola package, versions <0.17.2-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.17% (55th 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-WOLFILATEST-ZOLA-5926752
  • published1 Oct 2023
  • disclosed14 Aug 2023

Introduced: 14 Aug 2023

CVE-2023-40274  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Wolfi zola to version 0.17.2-r1 or higher.

NVD Description

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

An issue was discovered in zola 0.13.0 through 0.17.2. The custom implementation of a web server, available via the "zola serve" command, allows directory traversal. The handle_request function, used by the server to process HTTP requests, does not account for sequences of special path control characters (../) in the URL when serving a file, which allows one to escape the webroot of the server and read arbitrary files from the filesystem.

CVSS Scores

version 3.1