Sceawere

Vulnerability Detail

CVE-2026-5680UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

Undertow WebSocket Memory Exhaustion Vulnerability

Vulnerability Metadata

Severity
High
Score / CVSS
7.5
Creation Date
1h ago
Vendor
Red Hat
Product
Red Hat build of Apache Camel for Spring Boot 4
Attack Type
Allocation of Resources Without Limits or Throttling
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Complexity
LOW

Narrative and Response

Description

A flaw was found in Undertow. A remote attacker could exploit this vulnerability by sending specially crafted WebSocket messages with permessage-deflate negotiated. This could lead to excessive memory consumption due to the PerMessageDeflateFunction.largerBuffer() method using exponential doubling, resulting in a Denial of Service (DoS) for the affected application.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "7.5",
  "pubDate": "2026-08-27T17:18:58.397Z",
  "pubdate": "2026-08-27T17:18:58.397Z",
  "executiveSummary": "This vulnerability in the Undertow web server arises from improper resource management during the processing of WebSocket messages utilizing the permessage-deflate extension. The flaw facilitates a Denial of Service (DoS) attack, enabling a remote, unauthenticated attacker to exhaust system memory.\nThe core issue resides in the PerMessageDeflateFunction.largerBuffer() method, which employs an exponential buffer growth strategy. By crafting malicious WebSocket frames that trigger this expansion mechanism, an attacker can force the application to allocate excessively large memory buffers, rapidly consuming available heap space.\nThe vulnerability poses a high risk to availability, as successful exploitation results in application instability or crash due to OutOfMemoryError conditions. Because the vulnerability is reachable through standard WebSocket communication, it represents a significant threat to any service utilizing Undertow with permessage-deflate support enabled. No specific user privileges are required for exploitation, as the attack vector relies on the standard protocol negotiation process.",
  "technicalDetails": "The vulnerability is localized within the Undertow WebSocket implementation, specifically concerning the handling of the permessage-deflate extension. This extension allows for the compression of WebSocket messages, which requires the server to maintain internal buffers to decompress incoming frames.\nThe root cause is identified within the PerMessageDeflateFunction.largerBuffer() method. When the server processes a compressed WebSocket message, it must allocate a buffer to hold the decompressed data. The implementation uses an algorithm that doubles the buffer size exponentially to accommodate incoming data streams when a buffer is determined to be insufficient. This unbounded or improperly constrained exponential growth allows for the rapid escalation of memory allocation requests.\nThe attack flow proceeds as follows: 1. The attacker initiates a WebSocket connection with the target server and successfully negotiates the permessage-deflate extension. 2. The attacker transmits a series of specially crafted, compressed WebSocket frames designed to trigger the growth logic within the decompression engine. 3. The PerMessageDeflateFunction.largerBuffer() method is invoked repeatedly to expand the buffer capacity. 4. Due to the exponential nature of the growth, the heap memory usage spikes significantly with minimal input data from the attacker. 5. If the attacker sustains this activity, the JVM heap is exhausted, leading to an OutOfMemoryError, which effectively forces the application into an unresponsive state or causes a complete process termination.\nThis vulnerability is particularly dangerous because the attack can be performed over the network by any client capable of initiating a WebSocket connection. There are no authentication requirements for an attacker to reach the vulnerable code path. The impact is essentially a remote, unauthenticated Denial of Service. Because the buffer expansion logic lacks adequate upper-bound constraints or per-request resource limits, the application cannot gracefully handle the resource demand generated by the malicious payload. This behavior is symptomatic of a failure to enforce backpressure or resource quotas on protocol-level buffers during the decompression cycle of the permessage-deflate extension."
}
CVE-2026-5680: Undertow WebSocket Memory Exhaustion Vulnerability (HIGH Severity, CVSS: 7.5) - Sceawere