llamaCVEVulnerability Intelligence
/
node-server

CVE-2024-23340

@hono/node-server can't handle "double dots" in URL

Parche disponiblepath traversal
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Fuente: CNA
ExplotaciónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición1.032 dDesde la divulgación, 22 ene 2024, 6:00 p. m.
Detección1.029 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Parche 1.4.1
Monitoreo
Detectada
21 ene 24
22 ene 24
8 may 25
30 may 25
17 nov 26
20 nov 26
21 ene 24
6 oct 24
21 jun 25
7 mar 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.4.1 @hono/node-server · -1 d desde divulgación
Divulgación Publicada CVE-2024-23340 divulgada · CVSS 5.3 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen

@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Since v1.3.0, @hono/node-server has used its own Request object with `url` behavior that is unexpected. In the standard API, if the URL contains `..`, here called "double dots", the URL string returned by Request will be in the resolved path. However, the `url` in @hono/node-server's Request as does not resolve double dots, so `http://localhost/static/.. /foo.txt` is returned. This causes vulnerabilities when using `serveStatic`. Modern web browsers and a latest `curl` command resolve double dots on the client side, so this issue doesn't affect those using either of those tools. However, problems may occur if accessed by a client that does not resolve them. Version 1.4.1 includes the change to fix this issue. As a workaround, don't use `serveStatic`.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
node-server · @hono/node-server≥ 1.3.0 < 1.4.1
1.3.0
1.4.1
2.1.11
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@hono/node-server
Corregida 1.4.1 -1 d 2.1.11 no afectada
Versiones corregidas1.4.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359
Otrahttps://github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402
Otrahttps://github.com/honojs/node-server/blob/8cea466fd05e6d2e99c28011fc0e2c2d3f3397c9/src/request.ts#L43-L45

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.