VDB
Sign up
HIGH7.5

GHSA-h8q5-g2cj-qr5h

Apache Tika is vulnerable to entity expansions which can lead to a denial of service attack

Quick fix

GHSA-h8q5-g2cj-qr5h — org.apache.tika:tika-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.19.1</version> for org.apache.tika:tika-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tika:tika-core
Introduced in: 0.1Fixed in: 1.19.1
Fix# pom.xml: bump <version>1.19.1</version> for org.apache.tika:tika-core

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.apache.tika/tika-core"]}'