7.5high

CVE-2017-16762

Sanic arbitrary file read and directory traversal

Also known as GHSA-mpmf-hr8p-p49g, PYSEC-2017-40

Published 8 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
2.4%
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.

Exploit prediction (EPSS)

2.45% probability of exploitation in the next 30 days, higher than 84% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

EcosystemPackageAffectedFixed in
pypisanic
<0.5.1
0.5.1

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

  • github.com /channelcat/sanic/releases/tag/0.5.1 · x_refsource_CONFIRM, x_transferred
  • github.com /channelcat/sanic/issues/633 · x_refsource_CONFIRM, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2017-16762 · advisory
  • github.com /sanic-org/sanic/pull/635 · web
  • 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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.