CVE-2016-7046: Undertow Uncaught Exception vulnerability
5.9
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.89738%
CWE
Published
5/17/2022
Updated
1/29/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
io.undertow:undertow-core | maven | >= 1.4.0, < 1.4.3.Final | 1.4.3.Final |
io.undertow:undertow-core | maven | < 1.3.25.Final | 1.3.25.Final |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper buffer management in HttpRequestConduit.java's processWrite method. The pre-patch code in STATE_START (lines 126-141) used assertions to validate buffer capacity but lacked proper handling for oversized URLs. The patch introduced a length check (line 130-133) and a fallback path (lines 145-156) to write the URL incrementally via STATE_URL. The unpatched code's direct buffer writes without overflow checks allowed BufferOverflowExceptions when URLs exceeded buffer limits, triggering an uncaught exception loop. The HpackEncoder.java changes addressed secondary overflow scenarios, but the root cause was in HttpRequestConduit's request line construction logic.