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.
Published: 2026-09-15
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Memory Exhaustion Leading to Denial of Service
Action: Apply Patch
AI Analysis

Impact

When a service uses Http4s DigestAuth, every time an unauthenticated client requests protected content a nonce is generated and stored. The code that removes old nonces incorrectly stops eviction after the first stale entry, so the nonce cache grows without bound. Over time the Java Virtual Machine’s heap becomes saturated, causing the application to crash or become unresponsive. The vulnerability is a form of resource exhaustion that can be triggered by any client able to request authenticated routes.

Affected Systems

Any deployment of http4s that uses a DigestAuth server middleware version earlier than 0.23.35 or 1.0.0-M47 is affected. This includes all Scala applications that depend on those http4s releases and expose at least one route protected by DigestAuth. The fix is available in the 0.23.35 and 1.0.0-M47 release builds.

Risk and Exploitability

The CVSS score of 7.5 classifies the flaw as high severity. The EPSS score of <1% indicates a very low likelihood of exploitation, although it is not zero, but the absence of a KEV listing does not preclude abuse. The likely attack path requires an unauthenticated client sending repeated authentication challenges to a protected endpoint; the attack is straightforward once the target is reachable over the network. An attacker capable of this can cause the application to consume all available heap space, resulting in service disruption. In the absence of mitigation, the memory exhaustion could be accelerated by a high rate of requests, increasing the risk of a denial of service within minutes.

Generated by OpenCVE AI on September 17, 2026 at 06:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to http4s 0.23.35 or newer, or to 1.0.0‑M47 or later
  • If an upgrade is not immediately possible, implement application‑level rate limiting on routes using DigestAuth to reduce the frequency of nonce generation
  • Configure JVM heap limits and enable monitoring of memory usage to detect abnormal growth of the nonce cache before it causes a crash

Generated by OpenCVE AI on September 17, 2026 at 06:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fm4g-76c9-7w69 Http4s: DigestAuth nonce map grows unbounded
History

Tue, 15 Sep 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Http4s
Http4s http4s
Vendors & Products Http4s
Http4s http4s

Tue, 15 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
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.
Title Http4s: DigestAuth nonce map grows unbounded
Weaknesses CWE-400
CWE-401
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-17T16:41:51.421Z

Reserved: 2026-08-03T16:57:50.124Z

Link: CVE-2026-69208

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-15T19:17:37.730

Modified: 2026-09-16T20:39:16.610

Link: CVE-2026-69208

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-17T07:00:24Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-401

    Missing Release of Memory after Effective Lifetime