CVE-2018-1338: Vulnerability in org.apache.tika:tika-core
Summary
CVE-2018-1338: Moderate severity vulnerability that affects org.apache.tika:tika-core. Affects org.apache.tika:tika-core versions < 1.18. Fixed in 1.18. How to fix ↓
Also tracked for
- tika · Debian:11
The same CVE-2018-1338 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
org.apache.tika:tika-core is a Maven package that provides core functionality for Apache Tika, a content analysis toolkit. It is used for detecting and extracting metadata and structured text content from various file formats. This package is vulnerable to an infinite loop vulnerability in the BPGParser component.
Vulnerability Detail
The vulnerability in org.apache.tika:tika-core allows an attacker to trigger an infinite loop by providing a carefully crafted or fuzzed file to the BPGParser. This vulnerability exists in versions of Apache Tika prior to 1.18. The infinite loop can lead to resource exhaustion and denial of service (DoS) attacks. The Common Weakness Enumeration (CWE) ID for this vulnerability is CWE-835.
How To Fix
Latest published version: 4.1.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.18
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update to the fixed version of org.apache.tika:tika-core to mitigate the risk of exploitation.
Conclusion
The vulnerability in org.apache.tika:tika-core can be mitigated by upgrading to Apache Tika version 1.18 or later. It is recommended to update the dependency in your Maven project to ensure the fix is applied. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for org.apache.tika:tika-core →
FAQ
org.apache.tika:tika-core is a Maven package that provides core functionality for Apache Tika, a content analysis toolkit.
This vulnerability can be exploited to trigger an infinite loop, leading to resource exhaustion and denial of service (DoS) attacks.
Versions of Apache Tika prior to 1.18 are affected by this vulnerability.
The CWE ID for this vulnerability is CWE-835.
No, there is no known workaround. It is crucial to update to the fixed version of org.apache.tika:tika-core.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.tika:tika-core.