CVE-2019-10093: Tika parsers Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-4mq5-mj59-qq9c
CVSS 6.5
CWE-770
Published
Advisory Summary

CVE-2019-10093 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Tika parsers 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-10093 at a Glance

CVE Identifier CVE-2019-10093
GHSA Identifier GHSA-4mq5-mj59-qq9c
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Tika parsers
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2019-10093

To remediate this vulnerability, upgrade all affected Tika parsers 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-parsers fixed: 1.22
<dependency>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-parsers</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-10093, 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 parsers 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 parsers, 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

In Apache Tika 1.19 to 1.21, a carefully crafted 2003ml or 2006ml file could consume all available SAXParsers in the pool and lead to very long hangs. Apache Tika users should upgrade to 1.22 or later.

CVE-2019-10093 Affected Tika parsers Versions

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

References

Frequently Asked Questions

What is CVE-2019-10093?
CVE-2019-10093 is a security vulnerability in Tika parsers involving Allocation of Resources Without Limits or Throttling in Apache Tika under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Tika parsers versions are affected?
Affected versions include releases prior to 1.22 across affected packages: org.apache.tika:tika-parsers.
What version fixes CVE-2019-10093?
Upgrading to 1.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tika-parsers affected?
Yes, org.apache.tika:tika-parsers is affected in releases prior to 1.22. Upgrade your dependency to 1.22 or later.
What is the CVSS score of CVE-2019-10093?
CVE-2019-10093 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-10093?
CVE-2019-10093 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-10093?
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-4mq5-mj59-qq9c",
  "modified" : "2021-05-05T22:55:27Z",
  "published" : "2019-08-06T01:43:38Z",
  "aliases" : [ "CVE-2019-10093" ],
  "summary" : "Allocation of Resources Without Limits or Throttling in Apache Tika",
  "details" : "In Apache Tika 1.19 to 1.21, a carefully crafted 2003ml or 2006ml file could consume all available SAXParsers in the pool and lead to very long hangs. Apache Tika users should upgrade to 1.22 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tika:tika-parsers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.19"
      }, {
        "fixed" : "1.22"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10093"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/39723d8227b248781898c200aa24b154683673287b150a204b83787d@%3Cdev.tika.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/a5a44eff1b9eda3bc69d22943a1030c43d376380c75d3ab04d0c1a21@%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/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5@%3Csolr-user.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20190828-0004"
  }, {
    "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" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-06T01:42:09Z",
    "nvd_published_at" : "2019-08-02T19:15:00Z"
  }
}