{"schemaVersion":3,"id":"CVE-2023-40274","aliases":["CGA-8738-36mx-pqqw","CGA-vhm4-x7fr-cqhc","GHSA-xvv9-5j67-3rpq"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-08-14T00:00:00.000Z","modified":"2024-10-09T15:03:49.610Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.011,"percentile":0.65199,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.011},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.011,"percentile":0.65199}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.011,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.011,"percentile":0.65199}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GETZOLA_ZOLA","name":"Zola","source":"github","url":"https://github.com/getzola/zola/issues/2257","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"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.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard","product":"zola","name":"zola","label":"zola","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/zola","purlType":"apk","versions":[{"text":"< 0.17.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.17.2-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"zola","name":"zola","label":"zola","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/zola","purlType":"apk","versions":[{"text":"< 0.17.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.17.2-r1","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"zola","name":"zola","label":"zola","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/zola","purlType":"cargo","versions":[{"text":"≥ 0.13.0, ≤ 0.17.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.13.0, ≤ 0.17.2","eol":null,"hubHref":null},{"vendor":"getzola","product":"zola","name":"zola","label":"zola","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.13.0, ≤ 0.17.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.13.0, ≤ 0.17.2","eol":null,"hubHref":"/vendor/getzola/zola"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/getzola/zola/issues/2257","label":"github.com/getzola/zola/issues/2257","hostname":"github.com","tags":["WEB","Exploit","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/getzola/zola/pull/2258","label":"github.com/getzola/zola/pull/2258","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40274","label":"nvd.nist.gov/vuln/detail/CVE-2023-40274","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/getzola/zola","label":"github.com/getzola/zola","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-632X-XM85-9VJH","CGA-G5CH-G69R-PC89"]},"timeline":[{"kind":"published","date":"2023-08-14T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-09T15:03:49.610Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T15:30:04.960Z","stale":false,"partial":false}}