{"id":"CVE-2022-35920","published":"2022-08-01T21:35:27Z","modified":"2025-04-22T17:45:43Z","title":"Improper Limitation of a Pathname to a Restricted Directory in sanic","vendor":"sanic-org","product":"sanic","tier":"tail","description":{"text":"Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01199,"percentile":0.68905,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sanic-org/sanic/issues/2478","tags":["x_refsource_MISC"]},{"url":"https://github.com/sanic-org/sanic/pull/2495","tags":["x_refsource_MISC"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":13.78},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"sanic-org","affectedVersions":[{"vendor":"sanic-org","product":"sanic","versions":[">= 22.0.0, < 22.6.1",">= 21.0.0, < 21.12.2","< 20.12.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:40:06.042217Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sanic","vulnerableRanges":[">=22.0.0, <22.6.1",">=21.0.0, <21.12.2","<20.12.7"],"patched":["22.6.1","21.12.2","20.12.7"],"from":["GHSA-8cw9-5hmv-77w6","PYSEC-2026-918"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the sanic Python web server and framework (vendor sanic-org) lets requests served through app.static reach sibling directories outside the intended static root when the URL uses an encoded %2F separator; parent-directory traversal is not affected. An attacker needs only network access to the server, with no authentication, no user interaction, and no special configuration beyond using app.static with encoded slashes in the request path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:58Z"},"euvd":{"id":"EUVD-2022-6514","exploited":false,"provenance":"source"}}