Directory Traversal Affecting github.com/tyktechnologies/tyk/gateway package, versions *


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516
  • published15 Mar 2021
  • disclosed19 Nov 2020
  • creditcalabdean

Introduced: 19 Nov 2020

CVE-2021-23357  (opens in a new tab)
CWE-22  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for github.com/TykTechnologies/tyk/gateway.

Overview

github.com/TykTechnologies/tyk/gateway is a Tyk Gateway API

Affected versions of this package 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.

References

CVSS Scores

version 3.1