CVE-2022-35920
published high CVSS 3.1 · 8.3Improper Limitation of a Pathname to a Restricted Directory in sanic
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sanic-org | — | sanic>= 22.0.0, < 22.6.1 · >= 21.0.0, < 21.12.2 · < 20.12.7 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sanic-org | sanic | >= 22.0.0, < 22.6.1 (affected)>= 21.0.0, < 21.12.2 (affected)< 20.12.7 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3Provider assertions
3GitHub_M · cna
Improper Limitation of a Pathname to a Restricted Directory in sanic
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2036c19422eb99b062e3207559a81c9f5890a898fc4e71f7d8ad3ef2bd80db0f
- Ingested
- 23 Sep 2026, 08:01:20 UTC
- Source record
- Official CVE record