CVE-2018-6184 Directory traversal vulnerability in Next.js
Attackers can read arbitrary files via directory traversal in the Next.js framework, requiring an upgrade to secure the application.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-6184?
CVE-2018-6184 is a high-severity path traversal vulnerability in n/a, published on 24 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ZEIT Next.js 4 before 4.2.3 has Directory Traversal under the /_next request namespace.
Weakness: CWE-22
Which versions are affected by CVE-2018-6184?
2 open source packages ship an affected version, including next. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
next npm | From 1.0.0 | 4.2.3 |
next npm | From 1.0.0 | 4.2.3 |
Products include Zeit Next.js.
How do I fix CVE-2018-6184?
Upgrade next to 4.2.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-6184 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-6184 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as GHSA-m34x-wgrh-g897.