Description

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`.

INFO

Published Date :

May 14, 2024, 3:38 p.m.

Last Modified :

Nov. 21, 2024, 9:18 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2024-34351 has a 7 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-34351 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Vercel next.js

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Atividade de pentest solução iot

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : Dec. 10, 2024, 2:26 p.m. This repo has been linked 2 different CVEs too.

PoC for a full exploitation of NextJS SSRF (CVE-2024-34351)

TypeScript Python

Updated: 2 months, 3 weeks ago
2 stars 1 fork 1 watcher
Born at : Aug. 27, 2024, 3:10 p.m. This repo has been linked 1 different CVEs too.

None

Python JavaScript TypeScript CSS Dockerfile

Updated: 3 months, 3 weeks ago
2 stars 1 fork 1 watcher
Born at : Aug. 25, 2024, 4:41 a.m. This repo has been linked 1 different CVEs too.

PoC for a full exploitation of NextJS SSRF (CVE-2024-34351)

TypeScript Python

Updated: 4 months ago
1 stars 0 fork 0 watcher
Born at : Aug. 22, 2024, 6:25 p.m. This repo has been linked 1 different CVEs too.

None

HTML JavaScript CSS Python

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : June 11, 2024, 1:19 p.m. This repo has been linked 1 different CVEs too.

None

JavaScript TypeScript CSS

Updated: 2 months, 1 week ago
9 stars 2 fork 2 watcher
Born at : May 12, 2024, 10:49 a.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 2 weeks, 5 days ago
6566 stars 1140 fork 1140 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 958 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-34351 vulnerability anywhere in the article.

  • Cybersecurity News
Next.js Vulnerability CVE-2024-46982: Cache Poisoning Exploit Threatens Deployments

In the fast-paced world of web development, security is a constant concern, especially for platforms that power high-traffic applications like Next.js. Recently, the Next.js team has disclosed a new v ... Read more

Published Date: Sep 19, 2024 (3 months, 1 week ago)

The following table lists the changes that have been made to the CVE-2024-34351 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085
    Added Reference https://github.com/vercel/next.js/pull/62561
    Added Reference https://github.com/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g
  • CVE Received by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
    Added Description 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`.
    Added Reference GitHub, Inc. https://github.com/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g [No types assigned]
    Added Reference GitHub, Inc. https://github.com/vercel/next.js/pull/62561 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085 [No types assigned]
    Added CWE GitHub, Inc. CWE-918
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-34351 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-34351 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability