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)

EPSS: 0.005 (41.4th percentile) — read the EPSS interpretation.

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.

Affected products

  • Tyk
  • N/a Github.com/tyktechnologies/tyk/gateway — versions 0

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.