Next.js vulnerability: Poisoned cache could expose sensitive data
CVE-2024-46982
Key Information:
- Vendor
Vercel
- Status
- CVE ID
- CVE ID:
- CVE-2024-46982
- Vendor
- CVE Published:
- 17 September 2024
- Fixed in
- Fixed in:
- 13.5.1, 13.5.7, 14.0.0, 14.2.10
Timeline
Exploit known 88 days after it was published
- ๐ฐ
First article discovered by CybersecurityNews
- ๐
Vulnerability started trending
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (4 proof-of-concepts)
- 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
1Update to a fixed version
Install the next.js release that fixes your version line, or later:
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
Exploit code is public, so check logs on exposed next.js systems for unusual requests or new processes from before you patched. The 4 public proof-of-concepts show what an attack looks like.
4Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 61.0% chance of exploitation in the next 30 days.
- Its CVSS severity is high (7.5).
What is CVE-2024-46982?
CVE-2024-46982 is a vulnerability in the Next.js framework, which is used for building full-stack web applications. The flaw occurs in versions 13.5.1 to 14.2.9 when using the pages router with non-dynamic server-side rendered routes. An attacker can exploit this vulnerability by sending a crafted HTTP request that poisons the cache, causing the application to serve cached content that should not be stored. This can lead to the exposure of sensitive data or disrupt website availability.
This vulnerability has been exploited in the wild, allowing attackers to manipulate caching mechanisms and potentially serve malicious payloads to users. It was resolved in Next.js versions 13.5.7 and 14.2.10.
Potential Impact of CVE-2024-46982
-
Data exposure: Attackers can inject malicious scripts into the cache, leading to stored cross-site scripting (XSS) attacks that steal sensitive user data.
-
Service disruption: By altering cached content, attackers can serve poisoned responses, disrupting access to affected endpoints and impacting website availability.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
Next.js Framework Vulnerability Exposes Websites To Cache Poisoning & XSS Attacks
A critical vulnerability, identified as CVE-2024-46982, has been discovered in the popular Next.js framework, widely used for building full-stack web applications.ย
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