CVE-2017-16762 json
Sanic arbitrary file read and directory traversal
published 2017-11-10 8 y ago modified 2026-06-17 4 mo ago also GHSA-mpmf-hr8p-p49g , PYSEC-2017-40 , EUVD-2017-0127
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.
Patch / fix
- pypi sanic 0.5.1
- github.com/sanic-org/sanic#635 pull request
- github.com/channelcat/sanic/releases/tag/0.5.1 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-16762 updated cvss 8.6
sanic: Directory traversal in def _handler function sanic/sanic/static.py
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.49% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/channelcat/sanic/issues/633 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | sanic | <0.5.1 |
0.5.1 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/sanic-org/sanic/pull/635
web
-
github.com
/channelcat/sanic/issues/633
web, exploit, third-party-advisory, report
-
github.com
/channelcat/sanic/releases/tag/0.5.1
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16762
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/sanic/PYSEC-2017-40.yaml
web
-
github.com
/sanic-org/sanic
package
-
github.com
/advisories/GHSA-mpmf-hr8p-p49g
advisory
Sources
- CVE List CVE-2017-16762
- GitHub Advisory GHSA-mpmf-hr8p-p49g
- NVD CVE-2017-16762
- OSV PYSEC-2017-40
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.