Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-40274
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:44 UTC · Revision 1
Source evidence
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.
osv:CVE-2023-40274
Complete source record
{
"id": "a81960c39d08b6ee4f590027e7fcad0a3560542c72d09266742945dcdf5011f3",
"url": "https://osv.dev/vulnerability/CVE-2023-40274",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2023-40274",
"summary": "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.",
"evidence": "osv:CVE-2023-40274",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2023-40274",
"aliases": [
"CVE-2023-40274",
"GHSA-xvv9-5j67-3rpq"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/getzola/zola",
"type": "GIT",
"events": [
{
"introduced": "1ef8c85f53b4988fdafc0e6271cce590515d55aa"
},
{
"last_affected": "7c6bdc1019dbfa1c59667dd6ba0cacf30774b41b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.13.0"
},
{
"last_affected": "0.17.2"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:getzola:zola:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.13.0"
},
{
"last_affected": "0.17.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.17.2",
"v0.17.1",
"v0.17.0",
"v0.16.1",
"v0.16.0",
"v0.15.3",
"v0.15.1",
"v0.15.0",
"v0.14.1",
"v0.14.0",
"v0.13.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40274.json"
}
}
],
"modified": "2026-10-28T02:30:50.577835679Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40274.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-40274",
"https://github.com/getzola/zola/issues/2257",
"https://github.com/getzola/zola/pull/2258"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40274.json"
}
},
"related_cves": [
{
"value": "CVE-2023-40274",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518793,
"published_at": "2023-08-14T00:00:00+00:00"
}