Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sanic
  4. ›
  5. CVE-2022-35920

CVE-2022-35920: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

August 1, 2022 (updated August 10, 2022)

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.

References

  • github.com/advisories/GHSA-8cw9-5hmv-77w6
  • github.com/sanic-org/sanic/issues/2478
  • github.com/sanic-org/sanic/pull/2495
  • github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6
  • nvd.nist.gov/vuln/detail/CVE-2022-35920

Code Behaviors & Features

Detect and mitigate CVE-2022-35920 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 20.12.7, all versions starting from 21.0.0 before 21.12.2, all versions starting from 22.0.0 before 22.6.1

Fixed versions

  • 20.12.7
  • 21.12.2
  • 22.6.1

Solution

Upgrade to versions 20.12.7, 21.12.2, 22.6.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

pypi/sanic/CVE-2022-35920.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.