CVE-2020-5280 http4s
| Affected software | http4s |
|---|---|
| Severity | 7.6 High CVSS 3.1 3 scores |
| Fixed in | 0.18.26, 0.20.20, 0.21.2 |
| Weakness | Relative path traversal (CWE-23) |
| Published | 25 Mar 2020 |
| Updated | 17 Jun 2026 |
Description
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.
CWE-22 · Path traversal
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 6 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC none indexed
- EPSS 7.0% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full Path traversal
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-23: Relative Path Traversal. |
| Candidate fix | https://github.com/http4s/http4s/commit/250afddbb2e65b70ca9ddaec9d1eb3aaa56de7ec : a commit: the change itself |
How to mitigate CVE-2020-5280
Upgrade http4s to a release that fixes it: 0.18.26, 0.20.20 or 0.21.2. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.
CVSS
7.6 HIGH
v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
3 metrics
CVSS
7.6 HIGH v3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
3 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
security-advisories@github.com | Secondary | published |
| CVSS 3.1 | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
NVD | Primary | |
| CVSS 2.0 | 5.0 | none | AV:N/AC:L/Au:N/C:P/I:N/A:N |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.http4s:http4s-server_2.12 |
0 | 0.18.26 |
unbounded |
org.http4s:http4s-server_2.12 |
0.19.0 | 0.20.20 |
unbounded |
org.http4s:http4s-server_2.12 |
0.21.0 | 0.21.2 |
unbounded |
Products and versions
2 products, 6 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | org.http4s | http4s-server_2.12 | generic | < 0.18.26 · ≥ 0.19.0 and < 0.20.20 · ≥ 0.21.0 and < 0.21.2 |
| nvd | typelevel | http4s | generic | < 0.18.26 · ≥ 0.19.0 and < 0.20.20 · ≥ 0.21.0 and < 0.21.2 |
References
Timeline
Timeline
| Published | 2020-03-25 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |