Http4s Header Parser Crash v0.1.0-0.21.34, 0.22.15, 0.23.17, 1.0.0-M38
CVE-2023-22465 Published on January 4, 2023
Http4s has fatal error parsing User-Agent and Server headers
Http4s is a Scala interface for HTTP services. Starting with version 0.1.0 and prior to versions 0.21.34, 0.22.15, 0.23.17, and 1.0.0-M38, the `User-Agent` and `Server` header parsers are susceptible to a fatal error on certain inputs. In http4s, modeled headers are lazily parsed, so this only applies to services that explicitly request these typed headers. Fixes are released in 0.21.34, 0.22.15, 0.23.17, and 1.0.0-M38. As a workaround, use the weakly typed header interface.
Vulnerability Analysis
CVE-2023-22465 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Products Associated with CVE-2023-22465
Want to know whenever a new CVE is published for Typelevel Http4s? stack.watch will email you.
Affected Versions
http4s:- Version >= 0.1.0, < 0.21.34 is affected.
- Version >= 0.22.0, < 0.22.15 is affected.
- Version >= 0.23.0, < 0.23.17 is affected.
- Version >= 1.0.0-M1, < 1.0.0-M38 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-22465
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.http4s:http4s-core | >= 0.1.0, < 0.21.34 | 0.21.34 |
| maven | org.http4s:http4s-core | >= 0.22.0, < 0.22.15 | 0.22.15 |
| maven | org.http4s:http4s-core | >= 0.23.0, < 0.23.17 | 0.23.17 |
| maven | org.http4s:http4s-core | >= 1.0.0-M1, < 1.0.0-M38 | 1.0.0-M38 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.