CVE-2021-3859: Undertow vulnerable to Denial of Service (DoS) attacks
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41546%
CWE
Published
7/15/2022
Updated
1/28/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/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 | < 2.2.15 | 2.2.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) In Http2Channel.java, the parseFrame method didn't properly handle continuation frames across multiple packets, as shown by the addition of a do-while loop in the patch to process continuation data. 2) In HpackEncoder.java, the encode method had incorrect iterator management that could leave headers unprocessed. The commit directly modifies these functions to add proper continuation frame handling and iterator advancement, aligning with the CWE-400 (Uncontrolled Resource Consumption) description. The test case H2CUpgradeContinuationTestCase added in the patch validates these fixes by forcing continuation frame scenarios.