{"id":"CVE-2023-22465","aliases":["CVE-2023-22465","GHSA-54w6-vxfh-fw7f"],"related":[],"kind":"vulnerability","state":"published","title":"Http4s has fatal error parsing User-Agent and Server headers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `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. \n\n#### v0.21.x\n\n```scala\nval unsafe: Option[`User-Agent`] = req.headers.get(`User-Agent`)\n```\n\n#### v0.22.x, v0.23.x, v1.x\n\n```scala\nval unsafe: Option[`User-Agent`] = req.headers.get[`User-Agent`]\nval alsoUnsafe: Option[`Server`] = req.headers.get[Server]\n```\n\n### Patches\n\nFixes are released in 0.21.34, 0.22.15, 0.23.17, and 1.0.0-M38.\n\n### Workarounds\n\n#### Use the weakly typed header interface\n\n##### v0.21.x\n\n```scala\nval safe: Option[Header] = req.headers.get(\"User-Agent\".ci)\n// but don't do this\nval unsafe = header.map(_.parsed) \n```\n\n##### v0.22.x, v0.23.x, v1.x\n\n```scala\nval safe: Option[Header] = req.headers.get(ci\"User-Agent\")\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Http4s es una interfaz de Scala para servicios HTTP. A partir de la versión 0.1.0 y anteriores a las versiones 0.21.34, 0.22.15, 0.23.17 y 1.0.0-M38, los analizadores de encabezado `User-Agent` y `Server` son susceptibles a un error fatal en ciertas entradas. En http4s, los encabezados modelados se analizan de forma diferida, por lo que esto solo se aplica a los servicios que solicitan explícitamente estos encabezados escritos. Las correcciones se publicaron en 0.21.34, 0.22.15, 0.23.17 y 1.0.0-M38. Como workaround, utilice la interfaz de encabezado con tipos débiles.","source":"nvd"}],"published":"2023-01-04T15:30:04.129Z","modified":"2026-06-17T05:35:30.800Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 0.1.0, < 0.21.34","status":"affected"},{"version":">= 0.22.0, < 0.22.15","status":"affected"},{"version":">= 0.23.0, < 0.23.17","status":"affected"},{"version":">= 1.0.0-M1, < 1.0.0-M38","status":"affected"}],"vendor":"http4s","product":"http4s","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.1.0","status":"affected","fixed":"0.21.34"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.13","purl":"pkg:maven/org.http4s/http4s-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.22.0","status":"affected","fixed":"0.22.15"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.13","purl":"pkg:maven/org.http4s/http4s-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.23.0","status":"affected","fixed":"0.23.17"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.13","purl":"pkg:maven/org.http4s/http4s-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M1","status":"affected","fixed":"1.0.0-M38"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.13","purl":"pkg:maven/org.http4s/http4s-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.1.0","status":"affected","lastAffected":"0.9.3"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.10","purl":"pkg:maven/org.http4s/http4s-core_2.10","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.1.0","status":"affected","lastAffected":"0.21.0-M1"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.11","purl":"pkg:maven/org.http4s/http4s-core_2.11","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.1.0","status":"affected","fixed":"0.21.34"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.12","purl":"pkg:maven/org.http4s/http4s-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.22.0","status":"affected","fixed":"0.22.15"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.12","purl":"pkg:maven/org.http4s/http4s-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.23.0","status":"affected","fixed":"0.23.17"}],"ecosystem":"Maven","package":"org.http4s:http4s-core_2.12","purl":"pkg:maven/org.http4s/http4s-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M1","status":"affected","lastAffected":"1.0.0-M30"}],"ecosystem":"Maven","package":"org.http4s:http4s-core","purl":"pkg:maven/org.http4s/http4s-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.21.34"},{"status":"affected","introduced":"0.22.0","fixed":"0.22.15"},{"status":"affected","introduced":"0.23.0","fixed":"0.23.17"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"}],"vendor":"typelevel","product":"http4s","cpe":"cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/http4s/http4s/security/advisories/GHSA-54w6-vxfh-fw7f","tags":["exploit","mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22465","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/http4s/http4s","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-10T21:02:19.525Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22465","url":"https://www.cve.org/CVERecord?id=CVE-2023-22465","licence":"CVE Terms of Use","modified":"2025-03-10T21:32:44.734Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-54w6-vxfh-fw7f","url":"https://github.com/advisories/GHSA-54w6-vxfh-fw7f","licence":"CC-BY-4.0","modified":"2025-12-11T21:03:44.483Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22465","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22465","licence":"Public domain","modified":"2026-06-17T05:35:30.800Z"}],"updatedAt":"2026-11-25T22:58:21.482Z","epss":{"score":0.00946,"percentile":0.59699,"date":"2026-11-30T12:00:22.000Z"}}