{"id":"CVE-2018-1335","published":"2018-04-25T21:00:00Z","modified":"2024-09-17T03:58:34Z","title":"From Apache Tika versions 1.7 to 1.17, clients could send carefully crafted headers to tika-server that could be used…","vendor":"Apache Software Foundation","product":"Apache Tika","tier":"core","eol":null,"affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Tika","versions":["1.7 to 1.17"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Apache Tika's tika-server component, in versions 1.7 through 1.17 of Apache Tika, fails to properly handle specially crafted client-supplied headers, which can be used to inject commands into the server's command line. An attacker can exploit this when tika-server is reachable by untrusted clients, since the flaw only affects deployments exposed to such clients.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:20Z"},"cvss":null,"epss":{"score":0.93555,"percentile":0.9984,"date":"2026-10-30","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-12-05","exploitedFirstSeen":"2023-12-05","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-05&host_type=src&vulnerability=cve-2018-1335","date":"2023-12-05"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-06&host_type=src&vulnerability=cve-2018-1335","date":"2023-12-06"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-19&host_type=src&vulnerability=cve-2018-1335","date":"2023-12-19"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-04&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-04"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-05&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-05"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-14&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-17&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-22&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-23&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-23"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-24&host_type=src&vulnerability=cve-2018-1335","date":"2024-01-24"}],"evidenceTotal":688,"provenance":"source"},"exploited":true,"otx":{"pulseCount":2,"pulses":[{"name":"Coordinated Cloud-Based Scanning Operation Targets 75 Known Exposure Points in One Day","url":"https://otx.alienvault.com/pulse/68404f73e208ff30c97ed2a4","created":"2025-06-04"},{"name":"Cloud-Based Scanning Campaign Targeting 75+ Exposure Points","url":"https://otx.alienvault.com/pulse/6837cb935326caff09e2725e","created":"2025-05-29"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca%40%3Cdev.tika.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/104001","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.exploit-db.com/exploits/46540/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3140","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.apache.tika:tika-core","vulnerableRanges":[">=1.7, <1.18"],"patched":["1.18"],"from":["GHSA-9r24-gp44-h3pm"],"provenance":"source"}],"advisories":[{"id":"GHSA-9r24-gp44-h3pm","url":"https://github.com/advisories/GHSA-9r24-gp44-h3pm","severity":"HIGH","ecosystem":"Maven","package":"org.apache.tika:tika-core","vulnerableRanges":[">=1.7, <1.18"],"patched":["1.18"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2018-0566","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-0566","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":46540,"url":"https://www.exploit-db.com/exploits/46540","title":"Apache Tika-server < 1.18 - Command Injection","type":"remote","platform":"windows","date":"2019-03-13","verified":true,"provenance":"source"},{"id":47208,"url":"https://www.exploit-db.com/exploits/47208","title":"Apache Tika 1.15 - 1.17 - Header Command Injection (Metasploit)","type":"remote","platform":"windows","date":"2019-08-05","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2019-03-13"},"pocGithub":{"count":2,"skipped":3,"earliest":"2019-03-20","earliestUrl":"https://github.com/SkyBlueEternal/CVE-2018-1335-EXP-GUI","repos":[{"name":"SkyBlueEternal/CVE-2018-1335-EXP-GUI","url":"https://github.com/SkyBlueEternal/CVE-2018-1335-EXP-GUI","stars":14,"created":"2019-03-20"},{"name":"canumay/cve-2018-1335","url":"https://github.com/canumay/cve-2018-1335","stars":1,"created":"2021-01-18"}]},"metasploit":[{"name":"Apache Tika Header Command Injection","module":"exploit/windows/http/apache_tika_jp2_jscript","type":"exploit","disclosureDate":"2018-04-25","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_tika_jp2_jscript.rb"}],"nuclei":[{"id":"CVE-2018-1335","name":"Apache Tika < 1.1.8 - Header Command Injection","severity":"high","path":"http/cves/2018/CVE-2018-1335.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-1335.yaml"}],"first":{"date":"2018-04-25","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_tika_jp2_jscript.rb"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/46540/","http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html","https://www.exploit-db.com/exploits/46540"],"flow":[],"timeline":[{"date":"2018-04-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-1335","provenance":"source"},{"date":"2018-04-25","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2019-03-13, PoC-in-GitHub 2019-03-20","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_tika_jp2_jscript.rb","provenance":"source"},{"date":"2023-12-05","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-05&host_type=src&vulnerability=cve-2018-1335","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1061 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.97,"detail":"percentile 0.9984"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 2 Exploit-DB entries; 1 NVD exploit link; 1 advisory exploit reference; 2 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-4434","published":"2017-09-29","fixed":"1.13","kev":false},{"cve":"CVE-2016-6809","published":"2017-04-06","fixed":"1.14","kev":false,"link":{"from":"CVE-2016-6809","to":"CVE-2018-1335","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.tika:tika-core","fromFixed":"1.14","toFixed":"1.18","daysApart":384}]}},{"cve":"CVE-2018-1335","published":"2018-04-25","fixed":"1.18","kev":false},{"cve":"CVE-2018-1338","published":"2018-04-25","fixed":"1.18","kev":false},{"cve":"CVE-2018-11762","published":"2018-09-19","fixed":"1.19","kev":false},{"cve":"CVE-2018-8017","published":"2018-09-19","fixed":"1.19","kev":false}],"package":"Maven:org.apache.tika:tika-core"}}