Vulnerability Details : CVE-2022-35920
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.
Vulnerability category: Directory traversal
Products affected by CVE-2022-35920
- cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
- cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
- cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-35920
0.12%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 44 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-35920
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
8.3
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
3.9
|
3.7
|
GitHub, Inc. |
CWE ids for CVE-2022-35920
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-35920
-
https://github.com/sanic-org/sanic/issues/2478
Sanic static handler allows parent ".." directory traversal · Issue #2478 · sanic-org/sanic · GitHubExploit;Issue Tracking;Third Party Advisory
-
https://github.com/sanic-org/sanic/pull/2495
Prevent directory traversion with static files by prryplatypus · Pull Request #2495 · sanic-org/sanic · GitHubPatch;Third Party Advisory
-
https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sanic · Advisory · sanic-org/sanic · GitHubThird Party Advisory
Jump to