WaratekVRT Sign in

CVE-2020-5280 http4s

Affected softwarehttp4s
Severity7.6 High CVSS 3.1 3 scores
Fixed in0.18.26, 0.20.20, 0.21.2
WeaknessRelative path traversal (CWE-23)
Published25 Mar 2020
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/http4s/http4s/commit/250afddbb2e65b70ca9ddaec9d1eb3aaa56de7ec commit
https://github.com/http4s/http4s/security/advisories/GHSA-66q9-f7ff-mmx6 WEB
https://github.com/http4s/http4s/commit/752b3f63a05a31d2de4f8706877aa08d6b89efca WEB
https://github.com/http4s/http4s/commit/b87f31b2292dabe667bec3b04ce66176c8a3e17b WEB

Timeline

Published2020-03-25By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.