High
apache-jena — security advisory
A vulnerability in XML processing in Apache Jena, in versions up to 4.1.0, may allow an attacker to execute XML External Entities (XXE), including exposing the contents of local files to a remote server.
- Products
- apache-jena
- Affected versions
- 3.17.0-1, 3.17.0-2, 3.17.0-3, 4.5.0-2, 4.9.0-1, 4.9.0-1build1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-39239
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:44 UTC · Revision 1
Source evidence
A vulnerability in XML processing in Apache Jena, in versions up to 4.1.0, may allow an attacker to execute XML External Entities (XXE), including exposing the contents of local files to a remote server.
osv:UBUNTU-CVE-2021-39239
apache-jena
Fixed versions: Not specified
apache-jena
Fixed versions: Not specified
apache-jena
Fixed versions: Not specified
apache-jena
Fixed versions: Not specified
apache-jena
Fixed versions: Not specified
Complete source record
{
"id": "261ddbe58339fd418d4d63d66665d4a8a06933e7925383d00fe88bf9c234ebde",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-39239",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-39239",
"summary": "A vulnerability in XML processing in Apache Jena, in versions up to 4.1.0, may allow an attacker to execute XML External Entities (XXE), including exposing the contents of local files to a remote server.",
"evidence": "osv:UBUNTU-CVE-2021-39239",
"products": [
{
"name": {
"value": "apache-jena",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.17.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.17.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.17.0-3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "apache-jena",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.5.0-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.9.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "apache-jena",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "apache-jena",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.0-1build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "apache-jena",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.9.0-1build1",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-39239",
"aliases": [
"UBUNTU-CVE-2021-39239"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-jena",
"purl": "pkg:deb/ubuntu/apache-jena?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.17.0-1",
"3.17.0-2",
"3.17.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39239.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libapache-jena-java",
"binary_version": "3.17.0-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-jena",
"purl": "pkg:deb/ubuntu/apache-jena?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.5.0-2",
"4.9.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39239.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libapache-jena-java",
"binary_version": "4.9.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-jena",
"purl": "pkg:deb/ubuntu/apache-jena?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.9.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39239.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libapache-jena-java",
"binary_version": "4.9.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-jena",
"purl": "pkg:deb/ubuntu/apache-jena?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.9.0-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39239.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libapache-jena-java",
"binary_version": "4.9.0-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "apache-jena",
"purl": "pkg:deb/ubuntu/apache-jena?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.9.0-1",
"4.9.0-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-39239.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libapache-jena-java",
"binary_version": "4.9.0-1build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:01.693199181Z",
"provider": "osv",
"upstream": [
"CVE-2021-39239"
],
"references": [
"https://ubuntu.com/security/CVE-2021-39239",
"https://lists.apache.org/thread/qpbfrdty7jt3yfm39hx4p9dp151sd6gm",
"https://www.cve.org/CVERecord?id=CVE-2021-39239"
]
},
"related_cves": [
{
"value": "CVE-2021-39239",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354613,
"published_at": "2021-09-16T15:15:00+00:00"
}