# CVE-2021-23357: Directory Traversal

- Severity: Low 3.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-15T16:45:19.722Z
- Modified: 2026-06-17T03:38:36.913Z
- Weaknesses: CWE-22
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- github.com/TykTechnologies/tyk/gateway: before unspecified
- tyk tyk: no versions given

## Every score

- snyk: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/TykTechnologies/tyk/issues/3390> (exploit, third-party-advisory)
- <https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-23357](https://www.cve.org/CVERecord?id=CVE-2021-23357), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2021-23357](https://nvd.nist.gov/vuln/detail/CVE-2021-23357), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23357 · Whole record: https://cve.day/CVE-2021-23357.json · Rebuilt by cve.day 2026-11-25T22:58:00.293Z
