What’s Vulnerable › Vulnerabilities
CVE-2021-23357: Directory Traversal
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-03-15 · updated 2026-06-17
- Weakness: CWE-22
Description
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.
Affected products
- github.com/TykTechnologies/tyk/gateway: all versions
References
- https://github.com/TykTechnologies/tyk/issues/3390
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516
- https://github.com/TykTechnologies/tyk/issues/3390
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516
Get alerted when CVE-2021-23357 or the next vulnerability affects your stack