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?
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
mvn versions:use-dep-version -Dincludes=org.apache.tika:tika -DdepVersion=1.24.1 -DforceVersion=trueDetails
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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-9489
- Linkgithub.com/apache/tika/commit/0f4d5de0f85455e91433fb0b464ea0461d7c891d
- Packagegithub.com/apache/tika
- Linkissues.apache.org/jira/browse/TIKA-3081
- Linklists.apache.org/thread.html/r4cbc3f6981cd0a1a482531df9d44e4c42a7f63342a7ba78b7bff8a1b@%3Cnotifications.james.apache.org%3E
- Linklists.apache.org/thread.html/r4d943777e36ca3aa6305a45da5acccc54ad894f2d5a07186cfa2442c%40%3Cdev.tika.apache.org%3E
- Linkwww.oracle.com/security-alerts/cpuApr2021.html
- Linkwww.oracle.com/security-alerts/cpujul2021.html
- Linkwww.oracle.com/security-alerts/cpuoct2020.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.