CVE-2023-29401Gin-gonic Gin
Media 4.3 Sin autenticación
Seguir: esta CVE · Gin-gonic · Gin-gonic Gin Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 41
- CVSS 3.1
- 4.3
- EPSS
- 0.5% probabilidad de explotación en 30 días · percentil 38
- Requiere autenticación
- No
- Publicada
- 8 jun 2023
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-494
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Qué pasa
The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Gin.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | github.com/gin-gonic/gin |
≥ 1.3.1-0.20190301021747-ccb9e902956d < 1.9.1 |
1.9.1 |
go get github.com/gin-gonic/gin@v1.9.1 |
| Go | github.com/gin-gonic/gin |
≥ 1.3.1-0.20190301021747-ccb9e902956d < 1.9.1 |
1.9.1 |
go get github.com/gin-gonic/gin@v1.9.1 |
Según OSV / GitHub Advisories (GHSA-2c4m-59x9-fr2g, GO-2023-1737). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| gin-gonic | gin | ≥ 1.3.1-0.20190301021747-ccb9e902956d < 1.9.1 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Exploit Issue Tracking
- github.com Issue Tracking Patch
- github.com Release Notes
- pkg.go.dev Third Party Advisory