PyPi: Sanic

CVE-2022-35920

Safety vulnerability ID: 50438

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Aug 01, 2022 Updated at Jan 09, 2024
Scan your Python projects for vulnerabilities →

Advisory

Sanic 22.6.1, 21.12.2 and 20.12.7 include a fix for CVE-2022-35920: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6

Affected package

sanic

Latest version: 23.12.1

A web server and web framework that's written to go fast. Build fast. Run fast.

Affected versions

Fixed versions

Vulnerability changelog

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


CONFIRM:https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6: https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6
MISC:https://github.com/sanic-org/sanic/issues/2478: https://github.com/sanic-org/sanic/issues/2478
MISC:https://github.com/sanic-org/sanic/pull/2495: https://github.com/sanic-org/sanic/pull/2495

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 7.5

CVSS v3 Details

HIGH 7.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
NONE
Availability Availability (A)
NONE