{"schemaVersion":3,"id":"CVE-2018-1335","aliases":["UBUNTU-CVE-2018-1335","DEBIAN-CVE-2018-1335","GHSA-9r24-gp44-h3pm"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-04-25T21:00:00.000Z","modified":"2024-09-17T03:58:34.667Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Maven","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.93555,"percentile":0.99842,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":-0.20299999999999763,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.93758},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.9087,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.93555,"percentile":0.99842}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.9087,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.93758,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.93555,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.93555,"percentile":0.99842}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"47208","name":"Apache Tika 1.15 - 1.17 - Header Command Injection (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/47208","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"windows","file":"exploits/windows/remote/47208.rb","codes":["CVE-2018-1335"]},"metasploit":null},{"id":"46540","name":"Apache Tika-server < 1.18 - Command Injection","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46540","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"windows","file":"exploits/windows/remote/46540.py","codes":["CVE-2018-1335"]},"metasploit":null},{"id":"MSF_EXPLOIT_WINDOWS_HTTP_APACHE_TIKA_JP2_JSCRIPT","name":"Apache Tika Header Command Injection","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/windows/http/apache_tika_jp2_jscript.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/windows/http/apache_tika_jp2_jscript","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["unknown-stability"],"sideEffects":["unknown-side-effects"],"reliability":["unknown-reliability"]}}],"exploitCount":3,"weaknesses":[],"affected":[{"vendor":"apache software foundation","product":"apache tika","name":"Apache Tika","label":"apache tika","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.7 to 1.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.7 to 1.17","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_tika"},{"vendor":"apache","product":"tika","name":"tika","label":"tika","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.18","eol":null,"hubHref":"/vendor/apache/tika"},{"vendor":"debian","product":"tika","name":"tika","label":"tika","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/tika","purlType":"deb","versions":[{"text":"< 1.18-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.18-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"tika","name":"tika","label":"tika","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/tika","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.apache.tika","product":"tika-core","name":"org.apache.tika:tika-core","label":"tika-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.tika/tika-core","purlType":"maven","versions":[{"text":"≥ 1.7, < 1.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.7, < 1.18","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca%40%3Cdev.tika.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://www.securityfocus.com/bid/104001","label":"www.securityfocus.com/bid/104001","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory","WEB"]},{"url":"https://www.exploit-db.com/exploits/46540/","label":"www.exploit-db.com/exploits/46540/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html","label":"packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3140","label":"access.redhat.com/errata/RHSA-2019:3140","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-1335","label":"ubuntu.com/security/CVE-2018-1335","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://www.openwall.com/lists/oss-security/2018/04/25/8","label":"www.openwall.com/lists/oss-security/2018/04/25/8","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca@%3Cdev.tika.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["REPORT","WEB"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-1335","label":"www.cve.org/CVERecord?id=CVE-2018-1335","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-1335","label":"security-tracker.debian.org/tracker/CVE-2018-1335","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1335","label":"nvd.nist.gov/vuln/detail/CVE-2018-1335","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-9r24-gp44-h3pm","label":"github.com/advisories/GHSA-9r24-gp44-h3pm","hostname":"github.com","tags":["Advisory"]},{"url":"https://www.exploit-db.com/exploits/46540","label":"www.exploit-db.com/exploits/46540","hostname":"www.exploit-db.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-04-25T21:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T03:58:34.667Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T07:15:34.133Z","stale":false,"partial":false}}