{"id":"CVE-2022-35920","state":"PUBLISHED","title":"Improper Limitation of a Pathname to a Restricted Directory in sanic","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.","publishedAt":"2022-08-01T21:35:27.000Z","updatedAt":"2025-04-22T17:45:43.669Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["sanic-org sanic"],"affected":[{"vendor":"sanic-org","product":"sanic","versions":[{"version":">= 22.0.0, < 22.6.1","status":"affected"},{"version":">= 21.0.0, < 21.12.2","status":"affected"},{"version":"< 20.12.7","status":"affected"}]}],"references":["https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","https://github.com/sanic-org/sanic/issues/2478","https://github.com/sanic-org/sanic/pull/2495"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T19:50:17.761Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/35xxx/CVE-2022-35920.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-35920","state":"PUBLISHED","datePublished":"2022-08-01T21:35:27.000Z","dateUpdated":"2025-04-22T17:45:43.669Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-07-15T00:00:00.000Z"},"containers":{"cna":{"title":"Improper Limitation of a Pathname to a Restricted Directory in sanic","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"sanic-org","product":"sanic","versions":[{"version":">= 22.0.0, < 22.6.1","status":"affected"},{"version":">= 21.0.0, < 21.12.2","status":"affected"},{"version":"< 20.12.7","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-08-01T21:35:27.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-8cw9-5hmv-77w6","discovery":"UNKNOWN"},"x_legacyV4Record":{"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"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/sanic-org/sanic/issues/2478","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/sanic-org/sanic/pull/2495","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T09:51:58.602Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:40:06.042217Z","id":"CVE-2022-35920","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T17:45:43.669Z"}}]}}}