Vulnerability · Published Mar 25, 2020 · Assigned by GitHub_M

CVE-2020-5280Local file inclusion vulnerability in http4s

High 7.6

In plain English

A high-severity security flaw in http4s from http4s. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.0% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.6High
Exploit odds (30 days)7.0%top 5.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.http4s:http4s-server_2.120.18.26GHSA-66q9-f7ff-mmx6
Mavenorg.http4s:http4s-server_2.120.20.20GHSA-66q9-f7ff-mmx6
Mavenorg.http4s:http4s-server_2.120.21.2GHSA-66q9-f7ff-mmx6

Affected products (as reported)

VendorProductVersions
http4s http4s < 0.18.26>= 0.19.0, < 0.20.20>= 0.21.0, < 0.21.2

Weakness: CWE-23 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

References