Vulnerability Details : CVE-2020-5284
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.
Vulnerability category: Directory traversal
Products affected by CVE-2020-5284
- cpe:2.3:a:zeit:next.js:*:*:*:*:*:*:*:*
- cpe:2.3:a:vercel:next.js:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-5284
77.32%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 99 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-5284
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
4.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
2.8
|
1.4
|
NIST | |
4.4
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
1.3
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2020-5284
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
-
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2020-5284
-
https://github.com/zeit/next.js/releases/tag/v9.3.2
Release v9.3.2 · zeit/next.js · GitHubRelease Notes
-
https://github.com/zeit/next.js/security/advisories/GHSA-fq77-7p7r-83rj
Directory Traversal in Next.js versions below 9.3.2 · Advisory · zeit/next.js · GitHubThird Party Advisory
Jump to