Http4s blaze
blaze: Chunked-body trailer fields promoted into Request.headers in blaze-server (front-end header-sanitization bypass)
blaze is a Scala library for building asynchronous pipelines, with a focus on network IO. Prior to 0.23.18 and 1.0.0-M42, blaze-server can merge HTTP/1.1 chunked-body trailer fields into Request.headers. Because trailer fields are attacker-controlled, an unauthenticated remote client can inject arbitrary header names and values, including X-Forwarded-For and internal authorization headers, that a fronting proxy sanitized from the request-header section, bypassing header-based trust decisions in the application. Any http4s application using BlazeServerBuilder over HTTP/1.1 whose routes or middleware trust proxy-set headers, including X-Forwarded-For, X-Real-IP, and X-Forwarded-Host, is affected. If a fronting proxy strips or normalizes those headers but forwards chunked bodies with trailers intact, an attacker can spoof client IP for allow-lists, rate limits, or auditing, forge the https scheme, or inject internal authorization headers. A promoted Connection: close trailer is also honored, allowing attacker-controlled termination of pooled backend connections. This issue is fixed in versions 0.23.18 and 1.0.0-M42.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.23.18
- >= 1.0.0-M1, < 1.0.0-M42
Fixed in 0.23.18, 1.0.0-M42
Mitigation
Upgrade blaze to 0.23.18 or 1.0.0-M42 or later.
References
- Vendor advisory github.com/http4s/blaze/security/advisories/GH…
- Patch github.com/http4s/blaze/commit/ef3e666c146cfc1…
- Release notes github.com/http4s/blaze/releases/tag/v0.23.18
1 more
- Release notes github.com/http4s/blaze/releases/tag/v1.0.0-M4…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.