CVE-2024-56332 Details
Description
Next.js is a React framework for building full-stack web applications. Starting in version 13.0.0 and prior to versions 13.5.8, 14.2.21, and 15.1.2, Next.js is vulnerable to a Denial of Service (DoS) attack that allows attackers to construct requests that leaves requests to Server Actions hanging until the hosting provider cancels the function execution. This vulnerability can also be used as a Denial of Wallet (DoW) attack when deployed in providers billing by response times. (Note: Next.js server is idle during that time and only keeps the connection open. CPU and memory footprint are low during that time.). Deployments without any protection against long running Server Action invocations are especially vulnerable. Hosting providers like Vercel or Netlify set a default maximum duration on function execution to reduce the risk of excessive billing. This is the same issue as if the incoming HTTP request has an invalid `Content-Length` header or never closes. If the host has no other mitigations to those then this vulnerability is novel. This vulnerability affects only Next.js deployments using Server Actions. The issue was resolved in Next.js 13.5.8, 14.2.21, and 15.1.2. We recommend that users upgrade to a safe version. There are no official workarounds.
A denial-of-service vulnerability has been identified in Next.js versions 13.0.0 prior to 13.5.8, 14.2.21, and 15.0.0 prior to 15.1.1. This vulnerability allows attackers to create requests that disrupt Server Actions by keeping them open until the hosting provider terminates the execution. During this time, the Next.js server remains idle, only maintaining the connection with low CPU and memory usage. This issue is particularly problematic for deployments on providers that charge based on response times, such as Vercel or Netlify, where default function execution limits are in place to prevent excessive costs. The vulnerability arises in environments lacking safeguards against prolonged Server Action processes, and it mirrors the effects of an HTTP request with an invalid 'Content-Length' header or one that fails to close properly.
Users are advised to upgrade to Next.js versions 13.5.8, 14.2.21, or 15.1.2. There are no official workarounds for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/security/advisories/GHSA-7m27-7ghc-44w9 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 13.0.0, < 13.5.8 >= 14.0.0, < 14.2.21 >= 15.0.0, < 15.1.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Jan 3, 2025 | New CVE Received | [email protected] |