ZeroHour

CVE-2026-69208

niche

Unauthenticated Memory Exhaustion in http4s DigestAuth Middleware

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

http4s, a Scala library for HTTP services, contains a resource-exhaustion flaw in its DigestAuth server middleware caused by an inverted stale-nonce comparison: eviction stops at the first stale nonce and fresh nonces are removed incorrectly, so the persistent nonce map grows without bound. On any application that protects at least one route with DigestAuth, an unauthenticated remote attacker can repeatedly send requests that trigger authentication challenges, each inserting a new nonce, until the JVM exhausts heap memory and the service crashes or stalls. The impact is denial of service only (CVSS 3.1: 7.5, availability impact); no confidentiality or integrity impact. Affected deployments are those running http4s versions prior to 0.23.35 (0.23.x series) or prior to 1.0.0-M47 (1.0.0 milestone series) that use the DigestAuth middleware. No public proof of concept is known and the issue is not listed in CISA's KEV, so exploitation is not observed in the wild.

What to do: Upgrade http4s to 0.23.35 or later (0.23.x line) or 1.0.0-M47 or later (1.0.0 milestone line), where the nonce eviction logic is fixed. If immediate upgrade is not possible, consider removing or disabling DigestAuth middleware on affected routes, or place a rate-limiting reverse proxy in front to throttle unauthenticated challenge traffic. Monitor JVM heap usage and nonce map growth on services that expose DigestAuth-protected routes to detect exploitation attempts.

Affected
http4s (Typelevel) http4s< 0.23.35 (0.23.x series, including earlier versions)
http4s (Typelevel) http4s1.0.0-M1 through < 1.0.0-M47 (1.0.0 milestone series)
Estimated exposure
nichelikely hundreds to low thousands of internet-reachable services (estimate) — http4s is a library rather than an installable product with public install counts, so exposure was estimated from Scala's small (~1% or less) share of the server-side language market, http4s' position as a leading Scala HTTP framework, and…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, the DigestAuth server middleware removes fresh nonces and stops eviction at the first stale nonce because its stale-nonce comparison is inverted. On an application that protects at least one route with DigestAuth, an unauthenticated attacker can repeatedly trigger authentication challenges, causing the persistent nonce map to grow until the JVM exhausts heap memory. This issue is fixed in versions 0.23.35 and 1.0.0-M47.

Ecosystems
maven
Weakness
CWE-400, CWE-401
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GHSA
GHSA-fm4g-76c9-7w69 (high)

In the news

No ingested article mentions this CVE yet.