WaratekVRT Sign in

CVE-2018-1335 Apache Tika

Affected softwareApache Tika
Severity8.1 High CVSS 3.0 2 scores
Fixed in1.18
Published25 Apr 2018
Updated20 Oct 2026

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.

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 1 citation · honeypot sightings · 5 exploits · earliest 2023-12-05.
  • CISA Vulnrichment no assessment published
  • Indexed PoC 6 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC, Metasploit, Nuclei; first seen 2019-03-13.
  • EPSS 94% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.8% of all scored CVEs.

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2018-1335 in VulnCheck (free account).

EvidenceSourceDetailDate
Honeypot sighting Shadowserver honeypots Exploitation attempts seen on 697 days 2023-12-05 to 2026-11-12
Reported exploitation greynoise.io /blog/coordinated-cloud-based-scanning-operation-targets-75-known-exposure-points 2025-05-27
Exploit reference VulnCheck XDB 147026ce3d31 Exploit type: initial-access 2020-02-11
Exploit reference VulnCheck XDB 8c09b09421ae Exploit type: initial-access 2021-01-18
Exploit reference VulnCheck XDB 509c75796be5 Exploit type: initial-access 2021-03-26
Exploit reference VulnCheck XDB 03afb5c3d4bd Exploit type: initial-access 2023-05-25
Exploit reference VulnCheck XDB c9ddc2b4526e Exploit type: initial-access 2024-06-06

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC GUI版 EXP 14 2019-03-20
GitHub PoC CENG 325 - Principles of Information Security And Privacy 1 2021-01-18
Exploit-DB Apache Tika 1.15 - 1.17 - Header Command Injection (Metasploit) 2019-08-05
Exploit-DB Apache Tika-server < 1.18 - Command Injection 2019-03-13
Nuclei Apache Tika < 1.1.8 - Header Command Injection
Metasploit Apache Tika Header Command Injection (excellent rank)

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A researcher's recorded decision for this specific CVE
Finding An AI triage run found this CVE protected by the ARMR Process rule.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

Rule Name: ARMR Process rule

OS command injection: the X-Tika-OCRTesseractPath and X-Tika-OCRLanguage headers make TesseractOCRParser.doOCR start a program the attacker picks through ProcessBuilder.start. The ARMR Process rule blocks it with execute("*") protecting and only Tesseract's install folder allowed by full path.

How to mitigate CVE-2018-1335

Upgrade Apache Tika to 1.18 or later. Until you can, Waratek RASP blocks exploitation with its process rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

8.1 HIGH v3.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 8.1 HIGH CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 9.3 none AV:N/AC:M/Au:N/C:C/I:C/A:C NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.tika:tika-core 1.7 1.18 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache tika generic < 1.18
osv org.apache.tika tika-core generic ≥ 1.7 and < 1.18

References

URLTags
https://access.redhat.com/errata/RHSA-2019:3140 WEB
https://github.com/advisories/GHSA-9r24-gp44-h3pm ADVISORY
https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca@%3Cdev.tika.apache.org%3E WEB
https://www.exploit-db.com/exploits/46540 WEB
http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html WEB
http://www.securityfocus.com/bid/104001 WEB
https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca%40%3Cdev.tika.apache.org%3E
https://www.exploit-db.com/exploits/46540/ Exploit, Third Party Advisory, VDB Entry

Timeline

Published2018-04-25By the CVE Program.
VulnCheck KEV: earliest evidence2023-12-05Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
NVD record modified2026-06-17NVD's own last-modified date for this record.
Last VRT activity2026-10-20Most recent commit touching this CVE's classification, patch or rule file.
VulnCheck KEV: latest evidence2026-11-12Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record.
Classification created2026-11-13First commit adding this CVE's research note.