Information Exposure Affecting org.http4s:http4s-core package, versions [0.21.7, 0.21.24)[0.22.0-M1, 0.22.0-RC1)[0.23.0-M1, 0.23.0-RC1)[1.0.0-M2, 1.0.0-M23)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Information Exposure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGHTTP4S-1297176
  • published28 May 2021
  • disclosed28 May 2021
  • creditUnknown

Introduced: 28 May 2021

CVE-2021-32643  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade org.http4s:http4s-core to version 0.21.24, 0.22.0-RC1, 0.23.0-RC1, 1.0.0-M23 or higher.

Overview

org.http4s:http4s-core is a Core http4s library for servers and clients

Affected versions of this package are vulnerable to Information Exposure. Http4s is a Scala interface for HTTP services. StaticFile.fromUrl can leak the presence of a directory on a server when the URL scheme is not file://, and the URL points to a fetchable resource under its scheme and authority. The function returns F[None], indicating no resource, if url.getFile is a directory, without first checking the scheme or authority of the URL.

If a URL connection to the scheme and URL would return a stream, and the path in the URL exists as a directory on the server, the presence of the directory on the server could be inferred from the 404 response.
The contents and other metadata about the directory are not exposed.

References

CVSS Scores

version 3.1