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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:tyk:tyk:*:*:*:*:*:*:*:*

History

21 Nov 2024, 05:51

Type Values Removed Values Added
References () https://github.com/TykTechnologies/tyk/issues/3390 - Exploit, Third Party Advisory () https://github.com/TykTechnologies/tyk/issues/3390 - Exploit, Third Party Advisory
References () https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 - Third Party Advisory () https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 - Third Party Advisory
CVSS v2 : 4.6
v3 : 5.3
v2 : 4.6
v3 : 3.3

Information

Published : 2021-03-15 17:15

Updated : 2024-11-21 05:51


NVD link : CVE-2021-23357

Mitre link : CVE-2021-23357

CVE.ORG link : CVE-2021-23357


JSON object : View

Products Affected

tyk

  • tyk
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')