Server-Side Request Forgery (SSRF) in Next.js - CVE-2024-34351

 

Server-Side Request Forgery (SSRF) in Next.js - CVE-2024-34351

Published: May 10, 2024 / Updated: August 23, 2024


Vulnerability identifier: #VU89341
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2024-34351
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: vercel
Affected software:
Next.js

Detailed vulnerability description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input in Next.js Server Actions. A remote attacker can send a specially crafted HTTP request with a modified Host header and trick the application to initiate requests to arbitrary systems.

Successful exploitation of this vulnerability may allow a remote attacker gain access to sensitive data, located in the local network or send malicious requests to other servers from the vulnerable system.


How to mitigate CVE-2024-34351

Install updates from vendor's website.

Sources