{
  "id": "CVE-2025-66516",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-66516",
  "published_at": "2025-12-04T16:17:24.98Z",
  "title": "Apache Tika core, Apache Tika parsers, Apache Tika PDF parser module: Update to CVE-2025-54988 to expand scope of artifacts affected",
  "vendor": "Apache Software Foundation",
  "product": "Apache Tika core",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-12T04:28:19Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 7.5,
    "repo": "chasingimpact/CVE-2025-66516-Writeup-POC",
    "source": "github"
  },
  "poc_repo_count": 4,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Critical XXE in Apache Tika tika-core (1.13-3.2.1), tika-pdf-module (2.0.0-3.2.1) and tika-parsers (1.13-1.28.5) modules on all platforms allows an attacker to carry out XML External Entity injection via a crafted XFA file inside of a PDF. \n\nThis CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways. \n\nFirst, while the entrypoint for the vulnerability was the tika-parser-pdf-module as reported in CVE-2025-54988, the vulnerability and its fix were in tika-core. Users who upgraded the tika-parser-pdf-module but did not upgrade tika-core to \u003e= 3.2.2 would still be vulnerable. \n\nSecond, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the \"org.apache.tika:tika-parsers\" module.",
  "cwe": "CWE-611",
  "cpes": [
    "cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.4,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "chasingimpact/CVE-2025-66516-Writeup-POC",
      "url": "https://github.com/chasingimpact/CVE-2025-66516-Writeup-POC",
      "created_at": "2025-12-12T04:28:19Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 11,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-10-01T03:03:43Z"
    },
    {
      "repo": "sid6224/CVE-2025-66516-POC",
      "url": "https://github.com/sid6224/CVE-2025-66516-POC",
      "created_at": "2025-12-17T07:35:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-02-23T07:38:28Z"
    },
    {
      "repo": "intSheep/Tika-CVE-2025-66516-Lab",
      "url": "https://github.com/intSheep/Tika-CVE-2025-66516-Lab",
      "created_at": "2025-12-19T07:26:42Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2022-02-02T11:18:13Z"
    },
    {
      "repo": "rithinark/rag-poc",
      "url": "https://github.com/rithinark/rag-poc",
      "created_at": "2026-09-29T05:35:28Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-12-13T11:22:21Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Tika core",
        "ranges": [
          "\u003e= 1.13, \u003c= 3.2.1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Tika parsers",
        "ranges": [
          "\u003e= 1.13, \u003c 2.0.0"
        ],
        "fixed_in": [
          "2.0.0"
        ]
      },
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Tika PDF parser module",
        "ranges": [
          "\u003e= 2.0.0, \u003c= 3.2.1"
        ],
        "fixed_in": null
      }
    ],
    "upgrade": [
      "Upgrade Apache Tika parsers to 2.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://lists.apache.org/thread/s5x3k93nhbkqzztp1olxotoyjpdlps9k"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/elasticsearch_tika_xfa_xxe.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: Elasticsearch ingest-attachment Apache Tika XFA XXE Local File Read (auxiliary/scanner/http/elasticsearch_tika_xfa_xxe)",
      "published_at": "2026-07-31T08:16:58Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-66516.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Tika - XML External Entity Injection",
      "published_at": "2026-01-19T11:51:40Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/chasingimpact/CVE-2025-66516-Writeup-POC/blob/13d694e62477ed2fc953124f3586dda0486ab701/poc/exploit.py",
      "source": "pocindex",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T11:25:11.578Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/tika",
      "ports": [
        6379,
        8080,
        9200,
        9997,
        9998,
        11211
      ],
      "protocol": "http",
      "repos": [
        "chasingimpact/CVE-2025-66516-Writeup-POC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "chasingimpact/CVE-2025-66516-Writeup-POC/webapp/app.py:192"
      ]
    },
    {
      "method": "POST",
      "path_template": "/embeddings",
      "body_markers": [
        "\"input\"",
        "\"model\""
      ],
      "content_type": "application/json",
      "ports": [
        3000,
        5173,
        8000,
        8001
      ],
      "protocol": "https",
      "repos": [
        "rithinark/rag-poc"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "rithinark/rag-poc/src/rag_poc/vector_store/embeddings.py:90"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/meta",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "content_type": "{var}",
      "ports": [
        6379,
        8080,
        9200,
        9997,
        9998,
        11211
      ],
      "protocol": "http",
      "repos": [
        "chasingimpact/CVE-2025-66516-Writeup-POC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "chasingimpact/CVE-2025-66516-Writeup-POC/webapp/app.py:70"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/tika",
      "headers": [
        {
          "name": "Accept",
          "value": "text/plain"
        }
      ],
      "content_type": "application/pdf",
      "ports": [
        6379,
        8080,
        9200,
        9997,
        9998,
        11211
      ],
      "protocol": "http",
      "repos": [
        "chasingimpact/CVE-2025-66516-Writeup-POC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "chasingimpact/CVE-2025-66516-Writeup-POC/poc/exploit.py:152",
        "chasingimpact/CVE-2025-66516-Writeup-POC/webapp/app.py:39"
      ]
    }
  ],
  "rules": []
}
