High severity · published Aug 1, 2022
CVE-2022-35920
Improper Limitation of a Pathname to a Restricted Directory in sanic
7.5
CVSS
1.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 68% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SA
sanic · sanic-org
>= 22.0.0, < 22.6.1; >= 21.0.0, < 21.12.2; < 20.12.7 · source: vendor, NVD
Affected product
SA
sanic
sanic-org
More from sanic
8.2
CVE-2026-85077
Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses
6.5
CVE-2026-85078
sanic chunked trailer request smuggling allows hidden second request execution