XXE in Apache Tika

CVE-2018-11796

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.

Vulnerability class: XXE (XML External Entity)

EPSS: 0.069 (93.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2018-11796?
CVE-2018-11796 is a high-severity vulnerability in Apache Tika, classified under Improper Restriction of XML External Entity Reference (XXE). CVSS score: 7.5/10. Published 2018-10-09.
How severe is CVE-2018-11796?
High severity. CVSS v3 base score is 7.5 out of 10.