Skip to content

CVE-2022-35920 Improper Limitation of a Pathname to a Restricted Directory in sanic

HighCVSS 7.5 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi sanic(PyPI) < 20.12.7; = 0.1.0; = 0.1.1; = 0.1.3 +65 more 20.12.7, 21.12.2, 22.6.1 Fixed
sanic project sanic < 20.12.7; >= 21.0.0, < 21.12.2; >= 22.0.0, < 22.6.1 20.12.7, 21.12.2, 22.6.1 Fixed
sanic-org sanic = < 20.12.7; = >= 21.0.0, < 21.12.2; = >= 22.0.0, < 22.6.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi sanic(PyPI) >= 22.0.0, < 22.6.1 22.6.1
pypi sanic(PyPI) >= 21.0.0, < 21.12.2 21.12.2
pypi sanic(PyPI) < 20.12.7 20.12.7
pypi sanic(PyPI) = 22.3.0 No fix listed
pypi sanic(PyPI) = 22.3.1 No fix listed
pypi sanic(PyPI) = 22.3.2 No fix listed
pypi sanic(PyPI) = 22.6.0 No fix listed
pypi sanic(PyPI) = 21.12.0 No fix listed
pypi sanic(PyPI) = 21.12.1 No fix listed
pypi sanic(PyPI) = 21.3.0 No fix listed
pypi sanic(PyPI) = 21.3.1 No fix listed
pypi sanic(PyPI) = 21.3.2 No fix listed
pypi sanic(PyPI) = 21.3.4 No fix listed
pypi sanic(PyPI) = 21.6.0 No fix listed
pypi sanic(PyPI) = 21.6.1 No fix listed
pypi sanic(PyPI) = 21.6.2 No fix listed
pypi sanic(PyPI) = 21.9.0 No fix listed
pypi sanic(PyPI) = 21.9.1 No fix listed
pypi sanic(PyPI) = 21.9.2 No fix listed
pypi sanic(PyPI) = 21.9.3 No fix listed
pypi sanic(PyPI) = 0.1.0 No fix listed
pypi sanic(PyPI) = 0.1.1 No fix listed
pypi sanic(PyPI) = 0.1.3 No fix listed
pypi sanic(PyPI) = 0.1.4 No fix listed
pypi sanic(PyPI) = 0.1.5 No fix listed
Show 50 more
ProductAffected versionsFixed in
pypi sanic(PyPI) = 0.1.6 No fix listed
pypi sanic(PyPI) = 0.1.7 No fix listed
pypi sanic(PyPI) = 0.1.8 No fix listed
pypi sanic(PyPI) = 0.1.9 No fix listed
pypi sanic(PyPI) = 0.2.0 No fix listed
pypi sanic(PyPI) = 0.3.0 No fix listed
pypi sanic(PyPI) = 0.3.1 No fix listed
pypi sanic(PyPI) = 0.4.0 No fix listed
pypi sanic(PyPI) = 0.4.1 No fix listed
pypi sanic(PyPI) = 0.5.0 No fix listed
pypi sanic(PyPI) = 0.5.1 No fix listed
pypi sanic(PyPI) = 0.5.2 No fix listed
pypi sanic(PyPI) = 0.5.4 No fix listed
pypi sanic(PyPI) = 0.6.0 No fix listed
pypi sanic(PyPI) = 0.7.0 No fix listed
pypi sanic(PyPI) = 0.8.0 No fix listed
pypi sanic(PyPI) = 0.8.1 No fix listed
pypi sanic(PyPI) = 0.8.2 No fix listed
pypi sanic(PyPI) = 0.8.3 No fix listed
pypi sanic(PyPI) = 18.12.0 No fix listed
pypi sanic(PyPI) = 19.12.0 No fix listed
pypi sanic(PyPI) = 19.12.2 No fix listed
pypi sanic(PyPI) = 19.12.3 No fix listed
pypi sanic(PyPI) = 19.12.4 No fix listed
pypi sanic(PyPI) = 19.12.5 No fix listed
pypi sanic(PyPI) = 19.3.1 No fix listed
pypi sanic(PyPI) = 19.6.0 No fix listed
pypi sanic(PyPI) = 19.6.2 No fix listed
pypi sanic(PyPI) = 19.6.3 No fix listed
pypi sanic(PyPI) = 19.9.0 No fix listed
pypi sanic(PyPI) = 20.12.0 No fix listed
pypi sanic(PyPI) = 20.12.1 No fix listed
pypi sanic(PyPI) = 20.12.2 No fix listed
pypi sanic(PyPI) = 20.12.3 No fix listed
pypi sanic(PyPI) = 20.12.4 No fix listed
pypi sanic(PyPI) = 20.12.5 No fix listed
pypi sanic(PyPI) = 20.12.6 No fix listed
pypi sanic(PyPI) = 20.3.0 No fix listed
pypi sanic(PyPI) = 20.6.0 No fix listed
pypi sanic(PyPI) = 20.6.1 No fix listed
pypi sanic(PyPI) = 20.6.2 No fix listed
pypi sanic(PyPI) = 20.6.3 No fix listed
pypi sanic(PyPI) = 20.9.0 No fix listed
pypi sanic(PyPI) = 20.9.1 No fix listed
sanic-org sanic = >= 22.0.0, < 22.6.1 No fix listed
sanic-org sanic = >= 21.0.0, < 21.12.2 No fix listed
sanic-org sanic = < 20.12.7 No fix listed
sanic project sanic < 20.12.7 20.12.7
sanic project sanic >= 21.0.0, < 21.12.2 21.12.2
sanic project sanic >= 22.0.0, < 22.6.1 22.6.1

References