← Vulnerability feed

Vulnerability record · CVE-2018-1335 · published 25 April 2018

CVE-2018-1335: Apache Tika tika-server header command injection

Apache · Tika

Apache Tika versions 1.7 through 1.17 allow clients to send crafted headers to tika-server that are injected into the server's command line, enabling command execution. It only affects deployments where tika-server is exposed to untrusted clients, but in that configuration it is a full remote code execution flaw.

8.1 CVSS 3.0 High EPSS 94% · top 0.2%
8.1CVSS 3.0 base score, v2 9.3
94%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

From Apache Tika versions 1.7 to 1.17, clients could send carefully crafted headers to tika-server that could be used to inject commands into the command line of the server running tika-server. This vulnerability only affects those running tika-server on a server that is open to untrusted clients. The mitigation is to upgrade to Tika 1.18.

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote code execution with no authentication or interaction required, high EPSS, and public exploit code, though exploitation requires an internet-exposed tika-server.

What it is

Apache Tika versions 1.7 through 1.17 allow clients to send crafted headers to tika-server that are injected into the server's command line, enabling command execution. It only affects deployments where tika-server is exposed to untrusted clients, but in that configuration it is a full remote code execution flaw.

Impact

An attacker can execute arbitrary operating system commands with the privileges of the tika-server process, leading to full compromise of the host and any data it can reach.

Attack surface

Reached over the network by sending crafted HTTP headers to an exposed tika-server instance; no authentication or user interaction is required per the CVSS vector (AV:N/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.93758, 99.8th percentile) and public exploit code exists (Exploit-DB 46540, Packet Storm), indicating active interest and easy weaponization.

What to do

  • Upgrade Apache Tika to 1.18 or later, which is the documented fix.
  • If upgrade is not immediate, remove tika-server from untrusted network exposure and restrict access to trusted clients only.
  • Place tika-server behind authentication and network ACLs or a reverse proxy that filters headers.
  • Run tika-server with a least-privilege service account and no unnecessary filesystem or shell access.
  • Monitor for and block requests containing shell metacharacters in headers.

Detection

  • Inspect tika-server HTTP request logs for headers containing shell metacharacters such as ;, |, $(), backticks, or newlines.
  • Alert on unexpected child processes spawned by the tika-server process (e.g., sh, bash, cmd.exe, curl, wget).
  • Monitor outbound network connections originating from the tika-server host to unfamiliar destinations.
  • Review host process telemetry for command lines that include tika-server-related arguments combined with shell interpreters.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-1335 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-66516Apache Tika XXE via crafted XFA file in PDFApache Tika's tika-core, tika-pdf-module and tika-parsers modules are vulnerable to XML External Entity injection when parsing a crafted XFA file emb…EPSS 88%analysed9.8CVE-2016-6809Apache nutch deserialization of untrusted data vulnerabilityApache Tika before 1.14 allows Java code execution for serialized objects embedded in MATLAB files. The issue exists because Tika invokes JMatIO to d…EPSS 8.0%8.8CVE-2019-10088Apache tika allocation without limits vulnerabilityA carefully crafted or corrupt zip file can cause an OOM in Apache Tika's RecursiveParserWrapper in versions 1.7-1.21. Users should upgrade to 1.22 o…EPSS 4.8%8.4CVE-2025-54988Apache tika xml external entity (xxe) vulnerabilityCritical XXE in Apache Tika (tika-parser-pdf-module) in Apache Tika 1.13 through and including 3.2.1 on all platforms allows an attacker to carry out…EPSS 38%7.8CVE-2019-10094Apache tika allocation without limits vulnerabilityA carefully crafted package/compressed file that, when unzipped/uncompressed yields the same file (a quine), causes a StackOverflowError in Apache Ti…EPSS 2.5%7.8CVE-2016-4434Apache tika xml external entity (xxe) vulnerabilityApache Tika before 1.13 does not properly initialize the XML parser or choose handlers, which might allow remote attackers to conduct XML External En…EPSS 3.6%7.5CVE-2021-33813Jdom xml external entity (xxe) vulnerabilityAn XXE issue in SAXBuilder in JDOM through 2.0.6 allows attackers to cause a denial of service via a crafted HTTP request.EPSS 19%7.5CVE-2018-11796Apache tika xml external entity (xxe) vulnerabilityIn Apache Tika 1.19 (CVE-2018-11761), we added an entity expansion limit for XML parsing. However, Tika reuses SAXParsers and calls reset() after eac…EPSS 6.9%

Source: NIST National Vulnerability Database (record CVE-2018-1335), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.