Vulnerability Database

363,159

Total vulnerabilities in the database

CVE-2021-32643 — typelevel / http4s

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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. This affects http4s versions: 0.21.7 through 0.21.23, 0.22.0-M1 through 0.22.0-M8, 0.23.0-M1, and 1.0.0-M1 through 1.0.0-M22. The patch is available in the following versions: v0.21.24, v0.22.0-M9, v0.23.0-M2, v1.0.0-M23. As a workaround users can avoid calling StaticFile.fromUrl with non-file URLs.

CVSS v3:

  • Severity: Medium
  • Score: 5.8
  • AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Software From Fixed in
typelevel / http4s 1.0.0-milestone17 1.0.0-milestone17.x
typelevel / http4s 1.0.0-milestone18 1.0.0-milestone18.x
typelevel / http4s 1.0.0-milestone19 1.0.0-milestone19.x
typelevel / http4s 1.0.0-milestone20 1.0.0-milestone20.x
typelevel / http4s 1.0.0-milestone21 1.0.0-milestone21.x
typelevel / http4s 1.0.0-milestone22 1.0.0-milestone22.x
typelevel / http4s 0.21.7 0.21.24
typelevel / http4s 0.22.0-milestone1 0.22.0-milestone1.x
typelevel / http4s 0.22.0-milestone4 0.22.0-milestone4.x
typelevel / http4s 0.22.0-milestone5 0.22.0-milestone5.x
typelevel / http4s 0.22.0-milestone6 0.22.0-milestone6.x
typelevel / http4s 0.22.0-milestone7 0.22.0-milestone7.x
typelevel / http4s 0.22.0-milestone8 0.22.0-milestone8.x
typelevel / http4s 0.23.0-milestone1 0.23.0-milestone1.x
typelevel / http4s 0.22.0-milestone2 0.22.0-milestone2.x
typelevel / http4s 0.22.0-milestone3 0.22.0-milestone3.x
typelevel / http4s 1.0.0-milestone1 1.0.0-milestone1.x
typelevel / http4s 1.0.0-milestone10 1.0.0-milestone10.x
typelevel / http4s 1.0.0-milestone11 1.0.0-milestone11.x
typelevel / http4s 1.0.0-milestone12 1.0.0-milestone12.x
typelevel / http4s 1.0.0-milestone13 1.0.0-milestone13.x
typelevel / http4s 1.0.0-milestone14 1.0.0-milestone14.x
typelevel / http4s 1.0.0-milestone15 1.0.0-milestone15.x
typelevel / http4s 1.0.0-milestone16 1.0.0-milestone16.x
typelevel / http4s 1.0.0-milestone2 1.0.0-milestone2.x
typelevel / http4s 1.0.0-milestone3 1.0.0-milestone3.x
typelevel / http4s 1.0.0-milestone4 1.0.0-milestone4.x
typelevel / http4s 1.0.0-milestone5 1.0.0-milestone5.x
typelevel / http4s 1.0.0-milestone6 1.0.0-milestone6.x
typelevel / http4s 1.0.0-milestone7 1.0.0-milestone7.x
typelevel / http4s 1.0.0-milestone8 1.0.0-milestone8.x
typelevel / http4s 1.0.0-milestone9 1.0.0-milestone9.x
Maven icon org.http4s / http4s-core 0.21.7 0.21.24
Maven icon org.http4s / http4s-core 0.22.0-M1 0.22.0-RC1
Maven icon org.http4s / http4s-core 0.23.0-M1 0.23.0-m1.x
Maven icon org.http4s / http4s-core 0.23.0-M1 0.23.0-RC1
Maven icon org.http4s / http4s-core 1.0.0-M1 1.0.0-M23

Frequently Asked Questions

A security vulnerability is a weakness in software, hardware, or configuration that can be exploited to compromise confidentiality, integrity, or availability. Many vulnerabilities are tracked as CVEs (Common Vulnerabilities and Exposures), which provide a standardized identifier so teams can coordinate patching, mitigation, and risk assessment across tools and vendors.

CVSS (Common Vulnerability Scoring System) estimates technical severity, but it doesn't automatically equal business risk. Prioritize using context like internet exposure, affected asset criticality, known exploitation (proof-of-concept or in-the-wild), and whether compensating controls exist. A "Medium" CVSS on an exposed, production system can be more urgent than a "Critical" on an isolated, non-production host.

A vulnerability is the underlying weakness. An exploit is the method or code used to take advantage of it. A zero-day is a vulnerability that is unknown to the vendor or has no publicly available fix when attackers begin using it. In practice, risk increases sharply when exploitation becomes reliable or widespread.

Recurring findings usually come from incomplete Asset Discovery, inconsistent patch management, inherited images, and configuration drift. In modern environments, you also need to watch the software supply chain: dependencies, containers, build pipelines, and third-party services can reintroduce the same weakness even after you patch a single host. Unknown or unmanaged assets (often called Shadow IT) are a common reason the same issues resurface.

Use a simple, repeatable triage model: focus first on externally exposed assets, high-value systems (identity, VPN, email, production), vulnerabilities with known exploits, and issues that enable remote code execution or privilege escalation. Then enforce patch SLAs and track progress using consistent metrics so remediation is steady, not reactive.

SynScan combines attack surface monitoring and continuous security auditing to keep your inventory current, flag high-impact vulnerabilities early, and help you turn raw findings into a practical remediation plan.