GHSA-H94V-C5RC-3PXM
Process crash via multipart fields parsed as JSON on the Fastify adapter
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-H94V-C5RC-3PXM divulgada | |
| Remediación | Parche 12.5.0 | @nestjs/platform-fastify · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
| Field | Value |
| --- | --- |
| Ecosystem | npm |
| Package | `@nestjs/platform-fastify` |
| Affected versions | `>= 12.1.0, < 12.5.0` |
| Patched versions | `12.5.0` |
| Severity | High |
| CVSS v3.1 | `AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` (7.5) |
| CWE | CWE-770 (Allocation of Resources Without Limits or Throttling), CWE-400 (Uncontrolled Resource Consumption) |
Summary
The upload interceptors of `@nestjs/platform-fastify/multipart` accepted any amount of multipart field data sent as `application/json`, which is parsed into objects that are kept for the whole request. A request within the default limits could exhaust the heap and terminate the process.
Impact
Applications using the Fastify adapter with any upload interceptor from `@nestjs/platform-fastify/multipart` at the default limits are affected. No authentication is needed unless a guard protects the route. The Express and Node adapters are not affected.
Patches
Fixed in 12.5.0. The JSON fields of a request are limited to 1 MiB in total by default (`limits.jsonFieldsSize`), and a request over the limit is rejected with 400.
Workarounds
Lower `limits.parts` and `limits.fieldSize` for upload routes, or limit request body sizes in a reverse proxy.
Credit
Reported by Anthropic's OSS Scanner.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@nestjs/platform-fastify |
Corregida | 12.5.0 | 0 d | 12.5.0 no afectada |
12.5.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nestjs/nest/security/advisories/GHSA-h94v-c5rc-3pxmLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
