Patchfirst
CVE-2020-5284 Public exploit Medium · 4.4 EPSS 44.8%

Directory Traversal in Next.js versions below 9.3.2

zeit · next.js

Summary

A directory traversal flaw in zeit's Next.js framework (versions before 9.3.2) lets crafted requests reach files within the dist (.next) build directory. An attacker needs network access to the application and low privileges, plus user interaction, and exploitation is hard to achieve, with the exposure limited to build assets unless the application deliberately stores other content there.

Official description · CVE.org

Next.js versions before 9.3.2 have a directory traversal vulnerability. Attackers could craft special requests to access files in the dist directory (.next). This does not affect files outside of the dist directory (.next). In general, the dist directory only holds build assets unless your application intentionally stores other assets under this directory. This issue is fixed in version 9.3.2.

Breakdown
67.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. What they do

First seen exploited 6 years after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+6 yrs

techniques

1 , grouped by in kill-chain order 1

CollectionTA0009

MITRE CTID mapping of the CVE · primary impact

Detection

0 rules for this CVE · 14 general rules for its techniques

Rules for this CVE

0 that reference CVE-2020-5284 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: next.

Upgrade to 9.3.2 or later

npmnpm install next@9.3.2

The first fix for CVE-2020-5284.

Affected versions

If you runUpgrade to
0.9.9 up to 9.3.29.3.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close