<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3aapachetika/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 12 Sep 2026 17:51:10 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3aapachetika/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Apache Tika Command Injection Vulnerability (CVE-2018-1335)</title><link>https://feed.craftedsignal.io/briefs/2026-09-cve-2018-1335/</link><pubDate>Sat, 12 Sep 2026 17:51:10 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-cve-2018-1335/</guid><description>Apache Tika-server versions prior to 1.18 are susceptible to unauthenticated remote command injection via malicious HTTP headers in PUT requests, allowing arbitrary code execution.</description><content:encoded><![CDATA[<p>Apache Tika-server versions before 1.18 are vulnerable to command injection (CVE-2018-1335) through improper sanitization of user-supplied data in the /meta endpoint. An attacker can craft malicious HTTP PUT requests, specifically manipulating the 'X-Tika-OCRTesseractPath' and 'X-Tika-OCRLanguage' headers, to bypass intended functionality and execute arbitrary system commands. By leveraging the application's OCR processing logic, attackers can force the server to execute malicious scripts, such as JScript on Windows, to spawn remote shells. This vulnerability has been weaponized within the Metasploit framework and is accessible to remote unauthenticated attackers. The severity is high given the capability for full code execution under the privileges of the Tika service account.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker performs reconnaissance to identify servers running vulnerable Apache Tika versions (&lt; 1.18).</li>
<li>Attacker crafts a malicious HTTP PUT request directed at the /meta endpoint.</li>
<li>Attacker injects arbitrary commands into the 'X-Tika-OCRTesseractPath' header, using double quotes to terminate the intended path string.</li>
<li>Attacker modifies the 'X-Tika-OCRLanguage' header to inject execution parameters (e.g., '//E:Jscript') to influence the target's internal processing of temporary files.</li>
<li>The server application, expecting a valid image file, saves the request body content as a temporary file on the local filesystem.</li>
<li>The Tika-server process invokes the underlying system command (e.g., cscript.exe), executing the malicious temporary file as a script.</li>
<li>The injected payload executes, granting the attacker remote command execution privileges with the Tika service account's permissions.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in full remote code execution on the host running the Apache Tika server. This allows attackers to pivot within the network, exfiltrate sensitive files, or install further persistent backdoors. The vulnerability is highly exploitable, as evidenced by its inclusion in the Metasploit framework and a high EPSS score, posing a significant risk to organizations running legacy Tika-server instances.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize the immediate upgrade of all Apache Tika-server instances to version 1.18 or later. For environments where patching is not immediately feasible, deploy WAF rules to inspect HTTP PUT requests to the /meta endpoint for suspicious patterns in headers like 'X-Tika-OCRTesseractPath' and 'X-Tika-OCRLanguage'.</p>
<h2 id="rules">Rules</h2>
<p>title: &quot;Detect CVE-2018-1335 Exploitation - Suspicious OCR Header Injection&quot;
description: &quot;Detects exploitation attempts against CVE-2018-1335 by monitoring HTTP PUT requests to the /meta endpoint containing suspicious header content indicating command injection.&quot;
logsource:
category: &quot;webserver&quot;
detection:
selection:
cs-method: &quot;PUT&quot;
cs-uri-stem|contains: &quot;/meta&quot;
cs-headers|contains:</p>
<ul>
<li>&quot;X-Tika-OCRTesseractPath&quot;</li>
<li>&quot;X-Tika-OCRLanguage&quot;
cs-headers|contains:</li>
<li>&quot;//E:Jscript&quot;</li>
<li>&quot;cscript.exe&quot;</li>
<li>&quot;calc.exe&quot;
condition: selection
level: &quot;high&quot;
tags:</li>
<li>&quot;attack.initial_access&quot;</li>
<li>&quot;attack.execution&quot;</li>
<li>&quot;attack.t1203&quot;</li>
<li>&quot;attack.t1059.003&quot;
falsepositives:</li>
<li>&quot;Legitimate administrative testing using Tika-server headers&quot;
tests:
positive:</li>
<li>name: &quot;PUT request with malicious headers&quot;
data:</li>
<li>cs-method: &quot;PUT&quot;
cs-uri-stem: &quot;/meta&quot;
cs-headers: &quot;X-Tika-OCRTesseractPath: &quot;cscript.exe&quot;&quot;
negative:</li>
<li>name: &quot;Standard Tika request&quot;
data:</li>
<li>cs-method: &quot;PUT&quot;
cs-uri-stem: &quot;/meta&quot;
cs-headers: &quot;X-Tika-OCRTesseractPath: /usr/bin/tesseract&quot;
handoff:
detection_confidence: &quot;high&quot;
required_telemetry:</li>
<li>log_source: &quot;webserver&quot;
event_or_channel: &quot;HTTP access logs&quot;
required_fields:</li>
<li>&quot;cs-method&quot;</li>
<li>&quot;cs-uri-stem&quot;</li>
<li>&quot;cs-headers&quot;
availability: &quot;available&quot;
notes: &quot;Headers must be logged to capture exploitation attempts&quot;
validation:
status: &quot;needs_environment_validation&quot;
steps:</li>
<li>&quot;Use curl to send a PUT request to the /meta endpoint with header X-Tika-OCRTesseractPath: &quot;calc.exe&quot;&quot;
expected_telemetry: &quot;Webserver logs showing the PUT request with the malicious header&quot;
pass_criteria: &quot;Log captured the header values&quot;
known_evasions:</li>
<li>&quot;Using alternative path separators or character encoding to obfuscate header content&quot;
limitations:</li>
<li>&quot;Requires full HTTP header logging to be effective&quot;
tuning:</li>
<li>source: &quot;Internal testing traffic&quot;
guidance: &quot;Allowlist known internal vulnerability scanning IP addresses&quot;
portability_notes:</li>
<li>platform: &quot;Splunk|Elastic&quot;
note: &quot;Requires field extraction for HTTP headers if not indexed by default&quot;
suggested_owner: &quot;Detection Engineering&quot;</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cve-2018-1335</category><category>rce</category><category>command-injection</category><category>apache</category></item></channel></rss>