Vulnerability Details : CVE-2020-5280
http4s before versions 0.18.26, 0.20.20, and 0.21.2 has a local file inclusion vulnerability. This vulnerability applies to all users of org.http4s.server.staticcontent.FileService, org.http4s.server.staticcontent.ResourceService and org.http4s.server.staticcontent.WebjarService. URI normalization is applied incorrectly. Requests whose path info contain ../ or // can expose resources outside of the configured location. This issue is patched in versions 0.18.26, 0.20.20, and 0.21.2. Note that 0.19.0 is a deprecated release and has never been supported.
Vulnerability category: Directory traversalFile inclusion
Products affected by CVE-2020-5280
- cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:*
- cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:*
- cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-5280
0.85%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 73 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-5280
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 | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
2.3
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2020-5280
-
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-5280
-
https://github.com/http4s/http4s/security/advisories/GHSA-66q9-f7ff-mmx6
Local file inclusion vulnerability in FileService, ResourceService, WebjarService · Advisory · http4s/http4s · GitHubThird Party Advisory
-
https://github.com/http4s/http4s/commit/b87f31b2292dabe667bec3b04ce66176c8a3e17b
Merge pull request from GHSA-66q9-f7ff-mmx6 · http4s/http4s@b87f31b · GitHubPatch
-
https://github.com/http4s/http4s/commit/250afddbb2e65b70ca9ddaec9d1eb3aaa56de7ec
Merge pull request from GHSA-66q9-f7ff-mmx6 · http4s/http4s@250afdd · GitHubPatch
-
https://github.com/http4s/http4s/commit/752b3f63a05a31d2de4f8706877aa08d6b89efca
Merge pull request from GHSA-66q9-f7ff-mmx6 · http4s/http4s@752b3f6 · GitHubPatch
Jump to