CVE-2022-35920PYSEC-2026-918GHSA-8CW9-5HMV-77W6
Improper Limitation of a Pathname to a Restricted Directory in sanic
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 22.6.1, 21.12.2, 20.12.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: partial
- 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