CVE-2018-8017: Comparison errorr in org.apache.tika:tika-core
5.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.87418%
CWE
Published
10/17/2018
Updated
3/4/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.tika:tika-core | maven | >= 1.2, < 1.19 | 1.19 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incorrect loop termination conditions in multiple methods of IptcAnpaParser.java. The original code used 'read > value.length' to break loops, which fails to handle the case where 'read' equals the array length. This allows the loop to continue processing past the end of valid data. The patch changed these checks to 'read >= value.length', properly terminating the loop. The affected methods (parseBody and parseFooter) both contained this pattern in their byte array processing loops, making them the root cause of the infinite loop vulnerability.