Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting tika package, versions *


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
7.54% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-TIKA-9897710
  • published29 Apr 2025
  • disclosed10 Oct 2018

Introduced: 10 Oct 2018

CVE-2018-11796  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 tika.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tika package and not the tika package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

In Apache Tika 1.19 (CVE-2018-11761), we added an entity expansion limit for XML parsing. However, Tika reuses SAXParsers and calls reset() after each parse, which, for Xerces2 parsers, as per the documentation, removes the user-specified SecurityManager and thus removes entity expansion limits after the first parse. Apache Tika versions from 0.1 to 1.19 are therefore still vulnerable to entity expansions which can lead to a denial of service attack. Users should upgrade to 1.19.1 or later.