Skip to main content
← All vulnerabilities
CVE-2022-35920PYSEC-2026-918GHSA-8CW9-5HMV-77W6

Improper Limitation of a Pathname to a Restricted Directory in sanic

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 22.6.1, 21.12.2, 20.12.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sanic-org sanic

    From 22.0.0 · fixed in 22.6.1; From 21.0.0 · fixed in 21.12.2; fixed in 20.12.7

  • sanicPyPI

    fixed in 20.12.7; From 22.0.0 · fixed in 22.6.1; From 21.0.0 · fixed in 21.12.2

  • sanicPyPI

    From 22.0.0 · fixed in 22.6.1

  • sanicPyPI

    From 21.0.0 · fixed in 21.12.2

  • sanicPyPI

    fixed in 20.12.7

References 3

GitHub · sanic-org/sanic