Path Traversal in Tyk
CVE-2021-23357
All versions of package github.com/tyktechnologies/tyk/gateway are vulnerable to Directory Traversal via the handleAddOrUpdateApi function. This function is able to delete arbitrary JSON files on the disk where Tyk is running via the management API. The APIID is provided by the user and this value is then used to create a file on disk. If there is a file found with the same name then it will be deleted and then re-created with the contents of the API creation request.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (42.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 42nd percentile — 42.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Tyk
- Github.com/tyktechnologies/tyk/gateway — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 (Third Party Advisory)
- github.com/TykTechnologies/tyk/issues/3390 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-23357?
- CVE-2021-23357 is a low-severity vulnerability in Tyk, classified under Path Traversal. CVSS score: 3.3/10. Published 2021-03-15.
- How severe is CVE-2021-23357?
- Low severity. CVSS v3 base score is 3.3 out of 10.
- Is CVE-2021-23357 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.