CVE-2023-40274:
zola Path Traversal vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.80664%
CWE
Published
8/14/2023
Updated
11/7/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
zola | rust | >= 0.13.0, <= 0.17.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the path handling logic in handle_request as described in:
- The original GitHub issue (#2257) explicitly references line 120 of serve.rs where the starts_with check occurs
- The pull request (#2258) fixes this by replacing the check with fs::canonicalize for proper path resolution
- Multiple sources confirm the vulnerability manifests in the web server implementation executed via 'zola serve', which is handled by this function
- The CWE-22 mapping directly corresponds to the described path traversal pattern in this function's logic