{
  "id": "CVE-2025-54988",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54988",
  "published_at": "2025-08-20T20:08:49.481Z",
  "title": "Apache Tika PDF parser module: XXE vulnerability in PDFParser's handling of XFA",
  "vendor": "Apache Software Foundation",
  "product": "Apache Tika PDF parser module",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "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-09-04T02:19:13Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 14.3,
    "repo": "mgthuramoemyint/POC-CVE-2025-54988",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Critical XXE in Apache Tika (tika-parser-pdf-module) in Apache Tika 1.13 through and including 3.2.1 on all platforms allows an attacker to carry out XML External Entity injection via a crafted XFA file inside of a PDF. An attacker may be able to read sensitive data or trigger malicious requests to internal resources or third-party servers. Note that the tika-parser-pdf-module is used as a dependency in several Tika packages including at least: tika-parsers-standard-modules, tika-parsers-standard-package, tika-app, tika-grpc and tika-server-standard.\n\nUsers are recommended to upgrade to version 3.2.2, which fixes this issue.",
  "cwe": "CWE-611",
  "cpes": [
    "cpe:2.3:a:apache:tika:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.8,
    "cna": 8.4
  },
  "repos": [
    {
      "repo": "mgthuramoemyint/POC-CVE-2025-54988",
      "url": "https://github.com/mgthuramoemyint/POC-CVE-2025-54988",
      "created_at": "2025-09-04T02:19:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 20,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-09-05T18:23:57Z"
    },
    {
      "repo": "galoryber/cve-2025-54988-VulnTikaProject",
      "url": "https://github.com/galoryber/cve-2025-54988-VulnTikaProject",
      "created_at": "2025-12-17T20:23:16Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-06-19T02:49:12Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Tika PDF parser module",
        "ranges": [
          "\u003e= 1.13, \u003c= 3.2.1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "org.apache.tika:tika-parser-pdf-module",
        "ranges": [
          "\u003e= 1.13, \u003c 3.2.2"
        ],
        "fixed_in": [
          "3.2.2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-p72g-pv48-7w9x"
      },
      {
        "vendor": "",
        "product": "org.apache.tika:tika-parsers",
        "ranges": [
          "\u003e= 1.13, \u003c 2.0.0-ALPHA"
        ],
        "fixed_in": [
          "2.0.0-ALPHA"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-p72g-pv48-7w9x"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.tika:tika-parser-pdf-module to 3.2.2 or later.",
      "Upgrade org.apache.tika:tika-parsers to 2.0.0-ALPHA or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://lists.apache.org/thread/8xn3rqy6kz5b3l1t83kcofkw0w4mmj1w"
      }
    ]
  },
  "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-54988.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Tika - XXE Injection",
      "published_at": "2026-04-27T09:54:03Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/version",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "galoryber/cve-2025-54988-VulnTikaProject"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "galoryber/cve-2025-54988-VulnTikaProject/Dockerfile:40",
        "galoryber/cve-2025-54988-VulnTikaProject/start-app.sh:36"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/detect-type",
      "body_markers": [
        "file=@testfile.pdf"
      ],
      "content_type": "multipart/form-data",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "galoryber/cve-2025-54988-VulnTikaProject"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "galoryber/cve-2025-54988-VulnTikaProject/README.md:17"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/extract-pdf",
      "body_markers": [
        "file=@testfile.pdf"
      ],
      "content_type": "multipart/form-data",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "galoryber/cve-2025-54988-VulnTikaProject"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "galoryber/cve-2025-54988-VulnTikaProject/README.md:19"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/extract-text",
      "body_markers": [
        "file=@testfile.pdf"
      ],
      "content_type": "multipart/form-data",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "galoryber/cve-2025-54988-VulnTikaProject"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "galoryber/cve-2025-54988-VulnTikaProject/README.md:15"
      ]
    }
  ],
  "rules": []
}
