CVE-2020-5280

High

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.

SeverityHigh
CVSS7.6
Exploit probability—
ProductTypelevel Http4s
PublishedMar 25, 2020
First seenMar 25, 2020
Weakness typeCWE-23CWE-23

How to fix

Update
  • typelevel http4s0.18.26, 0.20.20, 0.21.2 or later
  • org.http4s:http4s-server_2.120.18.26, 0.20.20, 0.21.2 or later

Affected products

ProductAffected versionsFixed in
typelevel http4sv < 0.18.26, 0.19.0 ≤ v < 0.20.20, 0.21.0 ≤ v < 0.21.20.18.26, 0.20.20, 0.21.2
org.http4s:http4s-server_2.12Mavenv < 0.18.26, 0.19.0 ≤ v < 0.20.20, 0.21.0 ≤ v < 0.21.20.18.26, 0.20.20, 0.21.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.