CVE-2022-35920

Improper Limitation of a Pathname to a Restricted Directory in sanic

State
Published
Severity
8.3 High
Published
Aug 1, 2022
Updated
Apr 22, 2025
Reserved
Jul 15, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.3 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:LGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
sanicsanic-org
  • >= 22.0.0, < 22.6.1Affected
  • >= 21.0.0, < 21.12.2Affected
  • < 20.12.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.