CVE-2021-23357 Directory Traversal
Attackers can delete arbitrary JSON files on the server via the management API, potentially causing data loss or service disruption.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-23357?
CVE-2021-23357 is a low-severity path traversal vulnerability in github.com/TykTechnologies/tyk/gateway, published on 15 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2021-23357?
It affects 1 product.
Products include Tyk Tyk.
How do I fix CVE-2021-23357?
No fix has been published for CVE-2021-23357 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-23357 being exploited?
There is no known exploitation of CVE-2021-23357 in the wild and no public exploit code.
Other vulnerabilities in github.com/TykTechnologies/tyk/gateway
Sources
Also known as GHSA-3qx7-r2pf-8cwr.