1. Archivio CVE
  2. 2025
  3. CVE-2025-59472

CVE-2025-59472

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – Alta

Descrizione

A denial of service vulnerability exists in Next.js versions with Partial Prerendering (PPR) enabled when running in minimal mode. The PPR resume endpoint accepts unauthenticated POST requests with the `Next-Resume: 1` header and processes attacker-controlled postponed state data. Two closely related vulnerabilities allow an attacker to crash the server process through memory exhaustion: 1. **Unbounded request body buffering**: The server buffers the entire POST request body into memory using `Buffer.concat()` without enforcing any size limit, allowing arbitrarily large payloads to exhaust available memory. 2. **Unbounded decompression (zipbomb)**: The resume data cache is decompressed using `inflateSync()` without limiting the decompressed output size. A small compressed payload can expand to hundreds of megabytes or gigabytes, causing memory exhaustion. Both attack vectors result in a fatal V8 out-of-memory error (`FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`) causing the Node.js process to terminate. The zipbomb variant is particularly dangerous as it can bypass reverse proxy request size limits while still causing large memory allocation on the server. To be affected you must have an application running with `experimental.ppr: true` or `cacheComponents: true` configured along with the NEXT_PRIVATE_MINIMAL_MODE=1 environment variable. Strongly consider upgrading to 15.6.0-canary.61 or 16.1.5 to reduce risk and prevent availability issues in Next applications.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
vercel next.js 15.6.0 canary58 node.js
vercel next.js 15.6.0 canary59 node.js
vercel next.js 15.6.0 canary6 node.js
vercel next.js 15.6.0 canary60 node.js
vercel next.js 15.6.0 canary7 node.js
vercel next.js 15.6.0 canary8 node.js
vercel next.js 15.6.0 canary9 node.js
vercel next.js >= 15.0.0 < 15.6.0 node.js
vercel next.js >= 16.0.0 < 16.1.5 node.js
vercel next.js 15.6.0 node.js
vercel next.js 15.6.0 canary0 node.js
vercel next.js 15.6.0 canary1 node.js
vercel next.js 15.6.0 canary10 node.js
vercel next.js 15.6.0 canary11 node.js
vercel next.js 15.6.0 canary12 node.js
vercel next.js 15.6.0 canary13 node.js
vercel next.js 15.6.0 canary14 node.js
vercel next.js 15.6.0 canary15 node.js
vercel next.js 15.6.0 canary16 node.js
vercel next.js 15.6.0 canary17 node.js
vercel next.js 15.6.0 canary18 node.js
vercel next.js 15.6.0 canary19 node.js
vercel next.js 15.6.0 canary2 node.js
vercel next.js 15.6.0 canary20 node.js
vercel next.js 15.6.0 canary21 node.js
vercel next.js 15.6.0 canary22 node.js
vercel next.js 15.6.0 canary23 node.js
vercel next.js 15.6.0 canary24 node.js
vercel next.js 15.6.0 canary25 node.js
vercel next.js 15.6.0 canary26 node.js
vercel next.js 15.6.0 canary27 node.js
vercel next.js 15.6.0 canary28 node.js
vercel next.js 15.6.0 canary29 node.js
vercel next.js 15.6.0 canary3 node.js
vercel next.js 15.6.0 canary30 node.js
vercel next.js 15.6.0 canary31 node.js
vercel next.js 15.6.0 canary32 node.js
vercel next.js 15.6.0 canary33 node.js
vercel next.js 15.6.0 canary34 node.js
vercel next.js 15.6.0 canary35 node.js
vercel next.js 15.6.0 canary36 node.js
vercel next.js 15.6.0 canary37 node.js
vercel next.js 15.6.0 canary38 node.js
vercel next.js 15.6.0 canary39 node.js
vercel next.js 15.6.0 canary4 node.js
vercel next.js 15.6.0 canary40 node.js
vercel next.js 15.6.0 canary41 node.js
vercel next.js 15.6.0 canary42 node.js
vercel next.js 15.6.0 canary43 node.js
vercel next.js 15.6.0 canary44 node.js
vercel next.js 15.6.0 canary45 node.js
vercel next.js 15.6.0 canary46 node.js
vercel next.js 15.6.0 canary47 node.js
vercel next.js 15.6.0 canary48 node.js
vercel next.js 15.6.0 canary49 node.js
vercel next.js 15.6.0 canary5 node.js
vercel next.js 15.6.0 canary50 node.js
vercel next.js 15.6.0 canary51 node.js
vercel next.js 15.6.0 canary52 node.js
vercel next.js 15.6.0 canary53 node.js
vercel next.js 15.6.0 canary54 node.js
vercel next.js 15.6.0 canary55 node.js
vercel next.js 15.6.0 canary56 node.js
vercel next.js 15.6.0 canary57 node.js
Tutte le 72 vulnerabilità di Vercel Next.js

Tipo di vulnerabilità

CWE-400 Consumo di risorse non controllato

Il prodotto non controlla correttamente l’assegnazione e l’uso di una risorsa limitata (memoria, CPU, connessioni), che può essere esaurita fino a bloccare il servizio.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse
Controllo degli accessi, Altro Aggirare i meccanismi di protezione, Altro

Come si previene

Architettura e progettazione Design throttling mechanisms into the system architecture. The best protection is to limit the amount of resources that an unauthorized user can cause to be expended. A strong authentication and access control model will help prevent such attacks from occurring in the first place. The login application should be protected against DoS attacks as much as possible. Limiting the database access, perhaps by caching result sets, can help minimize the resources expended. To further limit the potential for a DoS attack, consider tracking the rate of requests received from users and blocking requests that exceed a defined rate threshold.
Architettura e progettazione Mitigation of resource exhaustion attacks requires that the target system either: recognizes the attack and denies that user further access for a given amount of time, or uniformly throttles all requests in order to make it more difficult to consume resources more quickly than they can again be freed. The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question. The second solution is simply difficult to effectively institute -- and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.
Architettura e progettazione Ensure that protocols have specific limits of scale placed on them.
Sviluppo Ensure that all failures in resource allocation place the system into a safe posture.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 3.952 CVE di tipo CWE-400, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org