Vulnerability Details : CVE-2023-40274
Potential exploit
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.
Vulnerability category: Directory traversal
Products affected by CVE-2023-40274
- cpe:2.3:a:getzola:zola:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-40274
0.18%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 56 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-40274
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2023-40274
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2023-40274
-
https://github.com/getzola/zola/issues/2257
LFI in zola serve · Issue #2257 · getzola/zola · GitHubExploit;Issue Tracking;Vendor Advisory
-
https://github.com/getzola/zola/pull/2258
Fix LFI in `zola serve` by adeadfed · Pull Request #2258 · getzola/zola · GitHubPatch
Jump to