CVE-2019-10094: Tika core Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-mm7m-xg4h-6m52
CVSS 7.8
CWE-770
Published
Advisory Summary

CVE-2019-10094 is a HIGH (CVSS 7.8) remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Tika core libraries in the Maven ecosystem. The issue involves allocation of resources without limits or throttling in apache tika. Remediation is available by upgrading affected packages to version 1.22.

CVE-2019-10094 at a Glance

CVE Identifier CVE-2019-10094
GHSA Identifier GHSA-mm7m-xg4h-6m52
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Tika core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-10094

To remediate this vulnerability, upgrade all affected Tika core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.tika:tika-core fixed: 1.22
<dependency>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-core</artifactId>
    <version>1.22</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.tika

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2019-10094, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.tika

Analyze the terminal output to locate any version of Tika core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.22), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.tika command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Tika core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A carefully crafted package/compressed file that, when unzipped/uncompressed yields the same file (a quine), causes a StackOverflowError in Apache Tika's RecursiveParserWrapper in versions 1.7-1.21. Apache Tika users should upgrade to 1.22 or later.

CVE-2019-10094 Affected Tika core Versions

1 component(s)
Fixed Versions:
1.22
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.tika:tika-core
Maven
≥ 1.7
< 1.22
1.22

References

Frequently Asked Questions

What is CVE-2019-10094?
CVE-2019-10094 is a security vulnerability in Tika core involving Allocation of Resources Without Limits or Throttling in Apache Tika under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Tika core versions are affected?
Affected versions include releases prior to 1.22 across affected packages: org.apache.tika:tika-core.
What version fixes CVE-2019-10094?
Upgrading to 1.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tika-core affected?
Yes, org.apache.tika:tika-core is affected in releases prior to 1.22. Upgrade your dependency to 1.22 or later.
What is the CVSS score of CVE-2019-10094?
CVE-2019-10094 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10094?
CVE-2019-10094 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2019-10094?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tika'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mm7m-xg4h-6m52",
  "modified" : "2021-05-05T22:59:41Z",
  "published" : "2019-08-06T01:43:35Z",
  "aliases" : [ "CVE-2019-10094" ],
  "summary" : "Allocation of Resources Without Limits or Throttling in Apache Tika",
  "details" : "A carefully crafted package/compressed file that, when unzipped/uncompressed yields the same file (a quine), causes a StackOverflowError in Apache Tika's RecursiveParserWrapper in versions 1.7-1.21. Apache Tika users should upgrade to 1.22 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tika:tika-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7"
      }, {
        "fixed" : "1.22"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10094"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/39723d8227b248781898c200aa24b154683673287b150a204b83787d@%3Cdev.tika.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/da9ee189d1756f8508d0f2386d8e25aca5a6df541739829232be8a94@%3Cdev.tika.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/fb6c84fd387de997e5e366d50b0ca331a328c466432c80f8c5eed33d@%3Cdev.tika.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/fe876a649d9d36525dd097fe87ff4dcb3b82bb0fbb3a3d71fb72ef61@%3Cdev.tika.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5@%3Csolr-user.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-06T01:41:24Z",
    "nvd_published_at" : "2019-08-02T19:15:00Z"
  }
}