CVE-2021-23357
CVSS V2 Medium 4.6
CVSS V3 Medium 5.3
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.
Overview
- CVE ID
- CVE-2021-23357
- Assigner
- report@snyk.io
- Vulnerability Status
- Analyzed
- Published Version
- 2021-03-15T17:15:21
- Last Modified Date
- 2021-03-18T19:04:47
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:tyk:tyk:*:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:L/AC:L/Au:N/C:P/I:P/A:P
- Access Vector
- LOCAL
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 4.6
- Severity
- MEDIUM
- Exploitability Score
- 3.9
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Attack Vector
- LOCAL
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- LOW
- Base Score
- 5.3
- Base Severity
- MEDIUM
- Exploitability Score
- 1.8
- Impact Score
- 3.4
References
Reference URL | Reference Tags |
---|---|
https://github.com/TykTechnologies/tyk/issues/3390 | Exploit Third Party Advisory |
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-23357 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23357 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:19:26 | Added to TrackCVE | |||
2022-12-05 23:45:32 | 2021-03-15T17:15Z | 2021-03-15T17:15:21 | CVE Published Date | updated |
2022-12-05 23:45:32 | 2021-03-18T19:04:47 | CVE Modified Date | updated | |
2022-12-05 23:45:32 | Analyzed | Vulnerability Status | updated |