CVE-2016-6817: Improper Restriction of Operations within the Bounds of a Memory Buffer in Apache Tomcat
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.64064%
CWE
Published
5/14/2022
Updated
10/15/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.tomcat:tomcat | maven | >= 9.0.0.M1, <= 9.0.0.M11 | 9.0.0.M12 |
| org.apache.tomcat:tomcat | maven | >= 8.5.0, < 8.5.8 | 8.5.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical changes in Http2Parser.java's readHeaderPayload() method. The original implementation used a fixed 1024-byte buffer and a loop that subtracted 'payloadSize' without proper buffer expansion. This created an unreachable exit condition when headers exceeded buffer capacity. The patch introduces buffer expansion checks and dynamic resizing (via ByteBufferUtils.expand), confirming the vulnerability stemmed from improper buffer management in this function.