expat, libxmltok — security advisory
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.
- Products
- expat, libxmltok
- Affected versions
- 1.2-4, 1.2-4.1, 1.2-4.1~exp1, 1.2-4.2
- Fixed versions
- 2.4.1-2
- CVEs
- CVE-2013-0340
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 12:13 UTC · Revision 1
Source evidence
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.
osv:DEBIAN-CVE-2013-0340
expat
Fixed versions: 2.4.1-2
expat
Fixed versions: 2.4.1-2
expat
Fixed versions: 2.4.1-2
libxmltok
Fixed versions: Not specified
Complete source record
{
"id": "4c22ce0d4e55121d9ced0c1faa10a761971273537e9f4a4390144e202fd63b63",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2013-0340",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2013-0340",
"summary": "expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.",
"evidence": "osv:DEBIAN-CVE-2013-0340",
"products": [
{
"name": {
"value": "expat",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.4.1-2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "expat",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.4.1-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "expat",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.4.1-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libxmltok",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.2-4.1",
"evidence": "/affected/3/versions"
},
{
"value": "1.2-4.1~exp1",
"evidence": "/affected/3/versions"
},
{
"value": "1.2-4.2",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "unknown",
"structured": {
"id": "DEBIAN-CVE-2013-0340",
"aliases": [
"DEBIAN-CVE-2013-0340"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.1-2"
}
]
}
],
"package": {
"name": "expat",
"purl": "pkg:deb/debian/expat?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2013-0340.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.1-2"
}
]
}
],
"package": {
"name": "expat",
"purl": "pkg:deb/debian/expat?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2013-0340.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.1-2"
}
]
}
],
"package": {
"name": "expat",
"purl": "pkg:deb/debian/expat?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2013-0340.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libxmltok",
"purl": "pkg:deb/debian/libxmltok?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.2-4",
"1.2-4.1",
"1.2-4.1~exp1",
"1.2-4.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2013-0340.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-14T11:47:30.480380420Z",
"provider": "osv",
"upstream": [
"CVE-2013-0340"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2013-0340"
]
},
"related_cves": [
{
"value": "CVE-2013-0340",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 316288,
"published_at": "2014-01-21T18:55:09.117+00:00"
}