What’s Vulnerable › Vulnerabilities

CVE-2022-35920: 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.

Affected products

How to fix

Upgrade to a fixed version: sanic-org sanic 20.12.7, 21.12.2, 22.6.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-35920 or the next vulnerability affects your stack