Vulnerability · Published Jan 4, 2023 · Assigned by GitHub_M

CVE-2023-22465Http4s has fatal error parsing User-Agent and Server headers

High 7.5

In plain English

A high-severity improper input validation in http4s from http4s. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 40.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.http4s:http4s-coreno fix listedGHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.10no fix listedGHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.11no fix listedGHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.120.21.34GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.120.22.15GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.120.23.17GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.131.0.0-M38GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.130.22.15GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.130.23.17GHSA-54w6-vxfh-fw7f
Mavenorg.http4s:http4s-core_2.130.21.34GHSA-54w6-vxfh-fw7f

Affected products (as reported)

VendorProductVersions
http4s http4s >= 0.1.0, < 0.21.34>= 0.22.0, < 0.22.15>= 0.23.0, < 0.23.17>= 1.0.0-M1, < 1.0.0-M38

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

References