{"api_version":"1","generated_at":"2026-07-24T19:57:21+00:00","cve":"CVE-2022-35920","urls":{"html":"https://cve.report/CVE-2022-35920","api":"https://cve.report/api/cve/CVE-2022-35920.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35920","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35920"},"summary":{"title":"CVE-2022-35920","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-08-01 22:15:00","updated_at":"2022-08-10 15:16:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/sanic-org/sanic/issues/2478","name":"https://github.com/sanic-org/sanic/issues/2478","refsource":"MISC","tags":[],"title":"Sanic static handler allows parent \"..\" directory traversal · Issue #2478 · sanic-org/sanic · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sanic-org/sanic/pull/2495","name":"https://github.com/sanic-org/sanic/pull/2495","refsource":"MISC","tags":[],"title":"Prevent directory traversion with static files by prryplatypus · Pull Request #2495 · sanic-org/sanic · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","name":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","refsource":"CONFIRM","tags":[],"title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sanic · Advisory · sanic-org/sanic · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-35920","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35920","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"35920","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"sanic_project","cpe5":"sanic","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-35920","STATE":"PUBLIC","TITLE":"Improper Limitation of a Pathname to a Restricted Directory in sanic"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sanic","version":{"version_data":[{"version_value":">= 22.0.0, < 22.6.1"},{"version_value":">= 21.0.0, < 21.12.2"},{"version_value":"< 20.12.7"}]}}]},"vendor_name":"sanic-org"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","refsource":"CONFIRM","url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"},{"name":"https://github.com/sanic-org/sanic/issues/2478","refsource":"MISC","url":"https://github.com/sanic-org/sanic/issues/2478"},{"name":"https://github.com/sanic-org/sanic/pull/2495","refsource":"MISC","url":"https://github.com/sanic-org/sanic/pull/2495"}]},"source":{"advisory":"GHSA-8cw9-5hmv-77w6","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-08-01 22:15:00","lastModifiedDate":"2022-08-10 15:16:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*","versionStartIncluding":"22.0.0","versionEndExcluding":"22.6.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*","versionStartIncluding":"21.0.0","versionEndExcluding":"21.12.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*","versionEndExcluding":"20.12.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}