{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.tika:tika-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1335 exists.","fix":"Upgrade org.apache.tika:tika-core to 1.18 or later.","what":"CVE-2018-1335 is a high-severity command injection vulnerability in Apache Tika, published on 25 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-1335 and fix it if it is affected.\n\nWhat it is: CVE-2018-1335 is a high-severity command injection vulnerability in Apache Tika, published on 25 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1335 exists.\n\nAffected packages and fixed versions:\n- org.apache.tika:tika-core (Maven): affected from 1.7; fixed in 1.18\n- org.apache.tika:tika-core (Maven): affected from 1.7; fixed in 1.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-1335/ (Markdown: https://insights.sbomify.com/CVE-2018-1335/index.md)","id":"CVE-2018-1335","markdown":"https://insights.sbomify.com/CVE-2018-1335/index.md","name":"CVE-2018-1335","record":{"aliases":["DEBIAN-CVE-2018-1335","GHSA-9r24-gp44-h3pm","UBUNTU-CVE-2018-1335"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Tika library","requires_auth":"none","summary":"Attackers can inject commands into the tika-server command line via crafted headers, requiring the server to be exposed to untrusted clients.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"tika","vendor":"apache"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":2,"first_seen":"2018-04-25","github_poc":5,"max_poc_stars":14,"metasploit":1,"nuclei":1,"refs":[{"date":"2019-03-20T14:38:09Z","kind":"github_poc","ref":"https://github.com/SkyBlueEternal/CVE-2018-1335-EXP-GUI","stars":14,"title":"GUI版 EXP"},{"date":"2021-01-18T19:01:50Z","kind":"github_poc","ref":"https://github.com/canumay/cve-2018-1335","stars":1,"title":"CENG 325 - Principles of Information Security And Privacy"},{"date":"2018-04-25","kind":"metasploit","ref":"exploit/windows/http/apache_tika_jp2_jscript","stars":null,"title":"Apache Tika Header Command Injection"},{"date":"2019-03-13","kind":"exploitdb","ref":"46540","stars":null,"title":"Apache Tika-server \u003c 1.18 - Command Injection"},{"date":"2019-08-05","kind":"exploitdb","ref":"47208","stars":null,"title":"Apache Tika 1.15 - 1.17 - Header Command Injection (Metasploit)"},{"date":"2020-02-11T09:19:57Z","kind":"github_poc","ref":"https://github.com/N0b1e6/CVE-2018-1335-Python3","stars":0,"title":null},{"date":"2021-03-26T11:51:23Z","kind":"github_poc","ref":"https://github.com/siramk/CVE-2018-1335","stars":0,"title":null},{"date":"2024-06-06T21:02:24Z","kind":"github_poc","ref":"https://github.com/DigitalNinja00/CVE-2018-1335","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Command injection in org.apache.tika:tika-core","id":"CVE-2018-1335","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2018"},"n_packages":2,"n_references":5,"next":{"headline":"In Apache Tomcat there is an improper handing of overflow in the UTF-8 decoder","id":"CVE-2018-1336"},"packages":[{"ecosystem":"Maven","fixed":["1.18"],"introduced":["1.7"],"last_affected":[],"package":"org.apache.tika:tika-core","purl":null,"source":"GHSA-9r24-gp44-h3pm"},{"ecosystem":"Maven","fixed":["1.18"],"introduced":["1.7"],"last_affected":[],"package":"org.apache.tika:tika-core","purl":"pkg:maven/org.apache.tika/tika-core","source":"GHSA-9r24-gp44-h3pm"}],"prev":{"headline":"Exposure of Sensitive Information to an Unauthorized Actor in Apache Spark","id":"CVE-2018-1334"},"products":["Apache Tika"],"published":"2018-04-25","related":[{"cvss_score":8.8,"headline":"Allocation of Resources Without Limits or Throttling in Apache Tika","id":"CVE-2019-10088","kev_date_added":null,"published":"2019-08-02"},{"cvss_score":8.4,"headline":"Apache Tika has XXE vulnerability","id":"CVE-2025-66516","kev_date_added":null,"published":"2025-12-04"},{"cvss_score":8.4,"headline":"Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA","id":"CVE-2025-54988","kev_date_added":null,"published":"2025-08-20"},{"cvss_score":7.8,"headline":"Allocation of Resources Without Limits or Throttling in Apache Tika","id":"CVE-2019-10094","kev_date_added":null,"published":"2019-08-02"},{"cvss_score":7.8,"headline":"Apache Tika does not properly initialize the XML parser or choose handlers","id":"CVE-2016-4434","kev_date_added":null,"published":"2017-09-29"},{"cvss_score":7.5,"headline":"Apache Tika is vulnerable to entity expansions which can lead to a denial of service attack","id":"CVE-2018-11796","kev_date_added":null,"published":"2018-10-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Apache Software Foundation"]},"summary":"Attackers can inject commands into the tika-server command line via crafted headers, requiring the server to be exposed to untrusted clients.","url":"https://insights.sbomify.com/CVE-2018-1335/"}