CVE-2024-46982
HIGH EXPLOITEDNext.js 13.5.1-13.5.6 and 14.2.1-14.2.9 - Cache Poisoning via Crafted HTTP Request
Title source: llmExploitation Summary
CVE-2024-46982 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 5 public exploits from researchers including Lercas, hidesec, samuel871211.
AI-analyzed exploit summary This Go-based exploit automates the detection and exploitation of CVE-2024-46982, a cache poisoning vulnerability in Next.js where SSR responses can be incorrectly cached as SSG. It injects payloads via the User-Agent header and checks for reflection in responses.
Description
Next.js is a React framework for building full-stack web applications. By sending a crafted HTTP request, it is possible to poison the cache of a non-dynamic server-side rendered route in the pages router (this does not affect the app router). When this crafted request is sent it could coerce Next.js to cache a route that is meant to not be cached and send a `Cache-Control: s-maxage=1, stale-while-revalidate` header which some upstream CDNs may cache as well. To be potentially affected all of the following must apply: 1. Next.js between 13.5.1 and 14.2.9, 2. Using pages router, & 3. Using non-dynamic server-side rendered routes e.g. `pages/dashboard.tsx` not `pages/blog/[slug].tsx`. This vulnerability was resolved in Next.js v13.5.7, v14.2.10, and later. We recommend upgrading regardless of whether you can reproduce the issue or not. There are no official or recommended workarounds for this issue, we recommend that users patch to a safe version.
Exploits (5)
This Go-based exploit automates the detection and exploitation of CVE-2024-46982, a cache poisoning vulnerability in Next.js where SSR responses can be incorrectly cached as SSG. It injects payloads via the User-Agent header and checks for reflection in responses.
This repository contains a working proof-of-concept for CVE-2025-32421, demonstrating a race condition attack against Next.js 15.0.4 that bypasses the CVE-2024-46982 patch to expose sensitive server-side data.
This repository demonstrates a stored XSS vulnerability in Next.js via cache poisoning. The exploit leverages custom headers and query strings to manipulate caching behavior, allowing malicious scripts to be stored and executed in the context of other users' sessions.
This repository appears to be a basic Next.js template without any exploit code or vulnerability details for CVE-2024-46982. It lacks PoC logic or offensive techniques.
This PoC demonstrates a cache poisoning vulnerability in Next.js by uploading multiple copies of an image via the `_next/image?url=` endpoint, bypassing protections with delays. It leverages attacker-controlled URLs to poison the victim's cache.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H