CVE-2021-21363Smartbear Swagger-codegen
Alta 7.0
Seguir: esta CVE · Smartbear · Smartbear Swagger-codegen Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 42
- CVSS 3.1
- 7.0
- EPSS
- 0.4% probabilidad de explotación en 30 días · percentil 38
- Requiere autenticación
- Sí
- Publicada
- 11 mar 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Qué pasa
swagger-codegen is an open-source project which contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. In swagger-codegen before version 2.4.19, on Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. This vulnerability is local privilege escalation because the contents of the `outputFolder` can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled. For more details refer to the referenced GitHub Security Advisory. This vulnerability is fixed in version 2.4.19. Note this is a distinct vulnerability from CVE-2021-21364.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Swagger-codegen.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Maven | io.swagger:swagger-codegen |
< 2.4.19 |
2.4.19 |
— |
Según OSV / GitHub Advisories (GHSA-pc22-3g76-gm6j). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| smartbear | swagger-codegen | < 2.4.19 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory