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 :

May 14, 2024, 4:12 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2024-34351 has a 6 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
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-34351.

URL Resource
https://github.com/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085
https://github.com/vercel/next.js/pull/62561
https://github.com/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g

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

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

TypeScript Python

Updated: 2 months, 3 weeks ago
1 stars 0 fork 0 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: 2 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: 2 months, 4 weeks 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: 4 months, 3 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: 3 months, 2 weeks ago
8 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 months, 2 weeks ago
6375 stars 1107 fork 1107 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 904 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.

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