CVE-2021-23357
JSON

3.3low

Directory Traversal

Severity
3.3low CVSS:3.1 by snyk
Exploit likelihood
0.53% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
github.com/TykTechnologies/tyk/gatewaybefore unspecifiedCVE List
tyk tykNot specifiedNVD

All scores

snyk3.3low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD4.6medium CVSS:2.0AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Todas las versiones del paquete github.com/tyktechnologies/tyk/gateway son vulnerables a un Salto de Directorio por medio de la función handleAddOrUpdateApi. Esta función puede eliminar archivos JSON arbitrarios en el disco donde se ejecuta Tyk mediante la API de administración. El ID de la API lo proporciona el usuario y este valor es usado para crear un archivo en el disco. Si es encontrado un archivo con el mismo nombre, se eliminará y luego se volverá a crear con el contenido de la petición de creación de API

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23357 changed 2024-09-17CVE Terms of Use
NVDCVE-2021-23357 changed 2026-06-17Public domain