Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zola
  4. ›
  5. CVE-2023-40274

CVE-2023-40274: zola Path Traversal vulnerability

August 14, 2023 (updated August 22, 2023)

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.

References

  • github.com/advisories/GHSA-xvv9-5j67-3rpq
  • github.com/getzola/zola
  • github.com/getzola/zola/issues/2257
  • github.com/getzola/zola/pull/2258
  • nvd.nist.gov/vuln/detail/CVE-2023-40274

Code Behaviors & Features

Detect and mitigate CVE-2023-40274 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.13.0 up to 0.17.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

cargo/zola/CVE-2023-40274.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:48 +0000.