SSRF in Vercel Next.js
CVE-2024-34351
Next.js is a React framework that can provide building blocks to create web applications. A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions. If the `Host` header is modified, and the below conditions are also met, an attacker may be able to make requests that appear to be originating from the Next.js application server itself. The required conditions are 1) Next.js is running in a self-hosted manner; 2) the Next.js application makes use of Server Actions; and 3) the Server Action performs a redirect to a relative path which starts with a `/`. This vulnerability was fixed in Next.js `14.1.1`.
Vulnerability class: SSRF (Server-Side Request Forgery)
EPSS: 0.055 (91.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
Affected products
- Vercel Next.js — versions >= 13.4.0, < 14.1.1
Weakness classification (CWE)
Public proof-of-concept exploits
- Voorivex/CVE-2024-34351
- God4n/nextjs-CVE-2024-34351-_exploit
- avergnaud/Next.js_exploit_CVE-2024-34351
- Jinlei-Chen-UWO/cve-2024-34351-demo
- ARPSyndicate/cve-scores
- God4n/nextjs-CVE-2024-34351-_
- RodrigoLeee/Seguranca-iot-sala
- XiaomingX/nice-juejin-article
- XiaomingX/weekly
- YusukeJustinNakajima/BugBounty-Resources-For-Japanese
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC, Issue Tracking)
- security-advisories@github.com (Patch, x_refsource_MISC)
Frequently asked questions
- What is CVE-2024-34351?
- CVE-2024-34351 is a high-severity vulnerability in Vercel Next.js, classified under Server-Side Request Forgery (SSRF). CVSS score: 7.5/10. Published 2024-05-14.
- How severe is CVE-2024-34351?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2024-34351 known to be exploited?
- 19 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.