CVE-2024-56332
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedNext.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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceNext.js versions prior to 13.5.8, 14.2.21, and 15.1.2 contain a vulnerability in Server Actions where specially crafted HTTP requests can leave connections open indefinitely, causing resource exhaustion through hanging requests. Attackers can exploit this to create DoS or DoW (Denial of Wallet) attacks with minimal resource usage on their end.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 13.0.0, < 13.5.8>= 14.0.0, < 14.2.21>= 15.0.0, < 15.1.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Next.js versionRun 'npm list next' or check the 'next' dependency version in your package.json fileAffected if The version is 13.0.0 through 13.5.7, 14.0.0 through 14.2.20, or 15.0.0 through 15.1.1 (i.e., it falls within any of the affected ranges)
-
Confirm Server Actions are in useSearch your codebase for 'use server' directives in client components or check for exported functions marked with 'use server' in your action files. Also check if your next.config.js has 'serverActions' configuration enabledAffected if Server Actions are enabled or used in your application
-
Check for hanging connectionsMonitor active connections to your Next.js server during normal operation. Use netstat or your cloud provider's connection metrics to observe if connections remain in ESTABLISHED state beyond expected request completion timesAffected if Connections remain open significantly longer than your expected response times, especially for requests to Server Action endpoints
-
Review deployment timeout settingsCheck your load balancer, API gateway, or edge configuration (e.g., Vercel project settings, AWS ALB, Cloudflare) for request timeout values applied to Next.js routesAffected if No timeout is configured at the infrastructure layer, or timeouts are set to values higher than your normal response expectations
You are affected if your Next.js version falls within any of the affected ranges AND Server Actions are enabled in your application, particularly if you lack infrastructure-level request timeouts.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped13.5.814.2.2115.1.2
Upgrade to Next.js 13.5.8, 14.2.21, or 15.1.2 or later. For deployments without hosting provider timeout protections, implement request timeouts at the load balancer or edge level as an additional safeguard.
Next.js 13.5.8 (for 13.x), 14.2.21 (for 14.x), or 15.1.2 (for 15.x)
- If using Next.js 13.x: Upgrade to version 13.5.8 or later by running: npm install [email protected] (or npm install next@latest to get the latest safe 13.x version)
- If using Next.js 14.x: Upgrade to version 14.2.21 or later by running: npm install [email protected] (or npm install next@latest to get the latest safe 14.x version)
- If using Next.js 15.x: Upgrade to version 15.1.2 or later by running: npm install [email protected] (or npm install next@latest to get the latest safe 15.x version)
- After upgrading, verify Server Actions continue to function correctly in your application
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,144.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-56332 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-56332 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data