Server-Side Request Forgery (SSRF) vulnerability in Next.js Server Actions
CVE-2024-34351
Key Information:
Timeline
Exploit known 3 days before it was disclosed
- ๐ก
Public PoC available
Vulnerability published
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by CybersecurityNews
- ๐ฅ
Vulnerability reached the number 1 worldwide trending spot
- ๐
Vulnerability started trending
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Partly: Exploitation or a working exploit reported
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory โ2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Next.js. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
Exploitation has been reported, so check logs on exposed Next.js systems for unusual requests or new processes from before you patched.
4Why it's rated "Patch this week"
- Exploitation or a working exploit has been reported.
- It can be exploited remotely without credentials.
- Its CVSS severity is high (7.5).
What is CVE-2024-34351?
CVE-2024-34351 is a Server-Side Request Forgery (SSRF) vulnerability in Next.js, a React framework used for building web applications. The flaw occurs in Next.js Server Actions when the Host header is modified, and specific conditions are met: Next.js must be self-hosted, utilize Server Actions, and perform a redirect to a relative path starting with a /. An attacker can exploit this vulnerability to make requests that appear to originate from the Next.js application server itself.
This vulnerability has been patched in Next.js version 14.1.1.
Potential Impact of CVE-2024-34351
- Unauthorized Internal Requests: An attacker can manipulate the application to make requests to internal services, potentially exposing sensitive data or functionality.
Affected Version(s)
next.js >= 13.4.0, < 14.1.1
News Articles
Critical Next.js Vulnerability Let Attackers Compromise Server Operations
Two new vulnerabilities have been discovered in Next.js which were related to response queue poisoning and SSRF on certain Next.js versions.
References
More Vercel Vulnerabilities
SVG Injection in Satori Library
Path Traversal in Next.js Framework
Server-Side Request Forgery in Next.js
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction