Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Getzola | Zola | >= 0.13.0, <= 0.17.2 |
Related Weaknesses (CWE)
References
- https://github.com/getzola/zola/issues/2257ExploitIssue TrackingVendor Advisory
- https://github.com/getzola/zola/pull/2258Patch
- https://github.com/getzola/zola/issues/2257ExploitIssue TrackingVendor Advisory
- https://github.com/getzola/zola/pull/2258Patch
FAQ
What is CVE-2023-40274?
CVE-2023-40274 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2023-40274?
CVE-2023-40274 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-40274?
Check the references section above for vendor advisories and patch information. Affected products include: Getzola Zola.