Infinite Loop Vulnerability in Apache Tika's ChmParser

tika Updated 02 Oct 2025

Summary

25/04/2018
N/A
Yes i
Medium
5.5

CVE-2018-1339: A carefully crafted (or fuzzed) file can trigger an infinite loop in Apache Tika's ChmParser in versions of Apache Tika before 1.18. Affects tika across 2 version ranges.

< 1.18-1 < 38ff2a986af24ee255f1f91d654ea402f4016696

Fixed in 1.18-1. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache Tika is an open-source content analysis toolkit that is used to extract metadata and text from various file formats. The ChmParser module in Apache Tika is responsible for parsing CHM (Compiled HTML Help) files. CHM files are commonly used for documentation and help files on Windows systems. This vulnerability affects versions of Apache Tika before 1.18.

Vulnerability Detail

A carefully crafted or fuzzed file can trigger an infinite loop in Apache Tika's ChmParser. This vulnerability can be exploited by an attacker to cause a denial of service (DoS) condition by consuming excessive CPU resources. By sending a malicious CHM file to an application that uses Apache Tika, an attacker can cause the application to hang or become unresponsive.

How To Fix

Minimum fixed version

1.18-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tika

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 recommended to update Apache Tika to the latest version as soon as possible.

Conclusion

In summary, the Infinite Loop Vulnerability in Apache Tika's ChmParser can be exploited to cause a denial of service condition. It is recommended to update Apache Tika to version 1.18 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tika →

Share this vulnerability

FAQ

Apache Tika is an open-source content analysis toolkit that is used to extract metadata and text from various file formats.

A CHM (Compiled HTML Help) file is a file format commonly used for documentation and help files on Windows systems.

This vulnerability can be exploited by an attacker to cause a denial of service (DoS) condition by consuming excessive CPU resources. It can lead to application hang or unresponsiveness.

To fix this vulnerability, update Apache Tika to version 1.18 or later.

There is no known workaround for this vulnerability. It is recommended to update Apache Tika to the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for tika.

How To Fix

Minimum fixed version

1.18-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tika

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback