tika — security advisory
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. This CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways. First, 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 >= 3.2.2 would still be vulnerable. Second, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the "org.apache.tika:tika-parsers" module.
- Products
- tika
- Affected versions
- 1.22-1, 1.22-1ubuntu0.1~esm1, 1.22-2, 1.5-5
- Fixed versions
- 1.22-1ubuntu0.1~esm2, 1.22-2+deb11u1build0.22.04.1
- CVEs
- CVE-2025-66516
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:55 UTC · Revision 1
Source evidence
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. This CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways. First, 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 >= 3.2.2 would still be vulnerable. Second, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the "org.apache.tika:tika-parsers" module.
osv:UBUNTU-CVE-2025-66516
tika
Fixed versions: Not specified
tika
Fixed versions: 1.22-1ubuntu0.1~esm2
tika
Fixed versions: 1.22-2+deb11u1build0.22.04.1
tika
Fixed versions: Not specified
tika
Fixed versions: Not specified
tika
Fixed versions: Not specified
tika
Fixed versions: Not specified
Complete source record
{
"id": "bd3f197289bbe1654fcb64b2a3b7ba540aa3dc6d2dfd644e73331ecb38664635",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-66516",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-66516",
"summary": "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. This CVE covers the same vulnerability as in CVE-2025-54988. However, this CVE expands the scope of affected packages in two ways. First, 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 >= 3.2.2 would still be vulnerable. Second, the original report failed to mention that in the 1.x Tika releases, the PDFParser was in the \"org.apache.tika:tika-parsers\" module.",
"evidence": "osv:UBUNTU-CVE-2025-66516",
"products": [
{
"name": {
"value": "tika",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.5-5",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.22-1ubuntu0.1~esm2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "1.22-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.22-1ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.22-2+deb11u1build0.22.04.1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.22-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "tika",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2025-66516",
"aliases": [
"UBUNTU-CVE-2025-66516"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.5-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.5-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.22-1ubuntu0.1~esm2"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.22-1",
"1.22-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-1ubuntu0.1~esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.22-2+deb11u1build0.22.04.1"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.22-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-2+deb11u1build0.22.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.22-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.22-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.22-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tika",
"purl": "pkg:deb/ubuntu/tika?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.22-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66516.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libtika-java",
"binary_version": "1.22-2"
}
]
}
}
],
"modified": "2026-10-17T12:57:38.652168477Z",
"provider": "osv",
"upstream": [
"CVE-2025-66516"
],
"references": [
"https://ubuntu.com/security/CVE-2025-66516",
"https://www.cve.org/CVERecord?id=CVE-2025-66516",
"https://lists.apache.org/thread/s5x3k93nhbkqzztp1olxotoyjpdlps9k",
"https://cve.org/CVERecord?id=CVE-2025-54988",
"https://ubuntu.com/security/notices/USN-8324-1"
]
},
"related_cves": [
{
"value": "CVE-2025-66516",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/2/score"
},
"source_id": "core-osv",
"document_id": 357657,
"published_at": "2025-12-04T17:15:00+00:00"
}