MediumGHSA-4pv3-63jw-4jw2CVE-2020-9489

Missing Release of Memory after Effective Lifetime in Apache Tika

Published 7 May 2021 · Updated 8 Nov 2023

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 package

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

Details

A carefully crafted or corrupt file may trigger a System.exit in Tika's OneNote Parser. Crafted or corrupted files can also cause out of memory errors and/or infinite loops in Tika's ICNSParser, MP3Parser, MP4Parser, SAS7BDATParser, OneNoteParser and ImageParser. Apache Tika users should upgrade to 1.24.1 or later. The vulnerabilities in the MP4Parser were partially fixed by upgrading the com.googlecode:isoparser:1.1.22 dependency to org.tallison:isoparser:1.9.41.2. For unrelated security reasons, we upgraded org.apache.cxf to 3.3.6 as part of the 1.24.1 release.

Is GHSA-4pv3-63jw-4jw2 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-2022-25169Apache Tika vulnerable to uncontrolled memory consumption · 17 May 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
org.apache.tika:tika security overview

References

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