MediumGHSA-7qcq-xp2f-56f6CVE-2022-25169

Apache Tika vulnerable to uncontrolled memory consumption

Published 17 May 2022 · Updated 17 Feb 2024

Is your project on an affected org.apache.tika:tika?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<1.28.2
Fixed in
1.28.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tika:tika -DdepVersion=1.28.2 -DforceVersion=true
Affected
>=2.0.0 <2.4.0
Fixed in
2.4.0
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tika:tika -DdepVersion=2.4.0 -DforceVersion=true

Details

The BPG parser in versions of Apache Tika before 1.28.2 and 2.4.0 may allocate an unreasonable amount of memory on carefully crafted files.

Is GHSA-7qcq-xp2f-56f6 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.tika:tika, and gives you the command that fixes it.

More advisories for org.apache.tika:tika

  • LowCVE-2022-33879Apache Tika contains incomplete fix for regex DoS · 28 Jun 2022
  • MediumCVE-2021-28657Infinite loop in Apache Tika · 10 May 2021
  • MediumCVE-2020-1951Infinite Loop in Apache Tika · 7 May 2021
  • MediumCVE-2020-1950Uncontrolled Resource Consumption in Apache Tika · 7 May 2021
  • MediumCVE-2020-9489Missing Release of Memory after Effective Lifetime in Apache Tika · 7 May 2021
org.apache.tika:tika security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.