Security Bulletin
This security bulletin contains one medium risk vulnerability.
EUVDB-ID: #VU6872
Risk: Medium
CVSSv4.0: 7.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/U:Green]
CVE-ID: N/A
CWE-ID:
CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Exploit availability: No
DescriptionThe vulnerability allows a remote attacker to view contest of arbitrary files on the system.
The vulnerability exists due to insufficient input validation when processing requests sent to /_next</code> and <code>/static
namespaces. A remote attacker can send a specially crafted HTTP GET request, containing directory traversal sequences and view contest of arbitrary files on the system.
Exploitation example:
http://[host]/_next\..\..\..\..\..\..\..\..\..\etc\passwd
Update to version 2.4.1
Next.js: 1.0.0 - 2.4.0
CPE2.3https://send-patch.now.sh/
https://www.securitylab.ru/blog/personal/raz0r/341958.php
Q & A
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.