GitHub Advisoryadvisory · PyPI

GHSA-8cw9-5hmv-77w6 sanic vulnerable to Path Traversal when using `app.static` if using encoded `%2F` URLs

HIGH Published 2022-08-06 Modified 2022-08-11 Official page ↗
Aliases
CVE-2022-35920
Ecosystem
PyPI
Packages
sanic
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weaknesses
CWE-22
Reviewed
2022-08-06

Affected packages

• PyPI sanic: >= 22.0.0, < 22.6.1 → fixed in 22.6.1 • PyPI sanic: >= 21.0.0, < 21.12.2 → fixed in 21.12.2 • PyPI sanic: < 20.12.7 → fixed in 20.12.7

Description

Impact Access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Patches • v20.12.7 (LTS) • v21.12.2 (LTS) • v22.6.1 References https://github.com/sanic-org/sanic/issues/2478 https://github.com/sanic-org/sanic/pull/2495 For more information If you have any questions or comments about this advisory: • Open an issue in the community forums • Ping us on the Discord server

Related

Alias · CVE (1)

  • CVE-2022-35920 Sanic is an opensource python web server/framework. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References