{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-35920","id":"CVE-2022-35920","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.","descriptionLong":"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.","published":"2022-08-01T21:35:27.000Z","updated":"2026-10-28T02:30:45.307340818Z","reserved":"2022-07-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["sanic-org sanic"],"affectedProducts":[{"vendor":"sanic-org","product":"sanic","defaultStatus":null,"versions":[{"status":"affected","version":">= 22.0.0, < 22.6.1"},{"status":"affected","version":">= 21.0.0, < 21.12.2"},{"status":"affected","version":"< 20.12.7"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"sanic","purl":"pkg:pypi/sanic","ranges":[">=22.0.0 <22.6.1",">=21.0.0 <21.12.2","<20.12.7"],"fixed":["22.6.1","21.12.2","20.12.7"],"advisory":"GHSA-8cw9-5hmv-77w6"}],"cwes":["CWE-22"],"aliases":["GHSA-8cw9-5hmv-77w6","PYSEC-2026-918"],"references":[{"url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/sanic-org/sanic/issues/2478","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/sanic-org/sanic/pull/2495","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35920.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35920","tags":["advisory"]},{"url":"https://github.com/sanic-org/sanic","tags":["package"]},{"url":"https://pypi.org/project/sanic","tags":["package"]},{"url":"https://github.com/advisories/GHSA-8cw9-5hmv-77w6","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.01199,"epssPercentile":0.68808,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-35920","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35920","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-35920","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8cw9-5hmv-77w6","ok":true,"note":"GHSA-8cw9-5hmv-77w6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-35920","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}