USN-7307-1 (UBUNTU-CVE-2012-1148)
Vulnerability from osv_ubuntu – Published: 2025-02-26 22:33 – Updated: 2026-04-27 14:11 – Source websiteTim Boddy discovered that Expat, contained within the xmltok library, did not properly handle memory reallocation when processing XML files. If a user or application linked against Expat were tricked into opening a crafted XML file, an attacker could cause a denial of service by consuming excessive memory resources.
| URL | Type | |
|---|---|---|
{
"affected": [
{
"database_specific": {
"cves_map": {
"cves": [
{
"id": "CVE-2012-1148",
"severity": [
{
"score": "low",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:18.04:LTS"
}
},
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libxmltok1",
"binary_version": "1.2-4ubuntu0.18.04.1~esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "libxmltok",
"purl": "pkg:deb/ubuntu/libxmltok@1.2-4ubuntu0.18.04.1~esm5?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2-4ubuntu0.18.04.1~esm5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2-4",
"1.2-4ubuntu0.18.04.1~esm1",
"1.2-4ubuntu0.18.04.1~esm2",
"1.2-4ubuntu0.18.04.1~esm3",
"1.2-4ubuntu0.18.04.1~esm4"
]
},
{
"database_specific": {
"cves_map": {
"cves": [
{
"id": "CVE-2012-1148",
"severity": [
{
"score": "low",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:20.04:LTS"
}
},
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libxmltok1",
"binary_version": "1.2-4ubuntu0.20.04.1~esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "libxmltok",
"purl": "pkg:deb/ubuntu/libxmltok@1.2-4ubuntu0.20.04.1~esm5?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2-4ubuntu0.20.04.1~esm5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2-4",
"1.2-4ubuntu0.20.04.1~esm1",
"1.2-4ubuntu0.20.04.1~esm2",
"1.2-4ubuntu0.20.04.1~esm3",
"1.2-4ubuntu0.20.04.1~esm4"
]
},
{
"database_specific": {
"cves_map": {
"cves": [
{
"id": "CVE-2012-1148",
"severity": [
{
"score": "low",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:22.04:LTS"
}
},
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libxmltok1",
"binary_version": "1.2-4ubuntu0.22.04.1~esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "libxmltok",
"purl": "pkg:deb/ubuntu/libxmltok@1.2-4ubuntu0.22.04.1~esm5?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2-4ubuntu0.22.04.1~esm5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2-4",
"1.2-4ubuntu0.22.04.1~esm1",
"1.2-4ubuntu0.22.04.1~esm2",
"1.2-4ubuntu0.22.04.1~esm3",
"1.2-4ubuntu0.22.04.1~esm4"
]
},
{
"database_specific": {
"cves_map": {
"cves": [
{
"id": "CVE-2012-1148",
"severity": [
{
"score": "low",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:24.04:LTS"
}
},
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libxmltok1t64",
"binary_version": "1.2-4.1ubuntu2.24.0.4.1+esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:24.04:LTS",
"name": "libxmltok",
"purl": "pkg:deb/ubuntu/libxmltok@1.2-4.1ubuntu2.24.0.4.1+esm3?arch=source\u0026distro=esm-apps/noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2-4.1ubuntu2.24.0.4.1+esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2-4ubuntu1",
"1.2-4.1ubuntu1",
"1.2-4.1ubuntu2",
"1.2-4.1ubuntu2.24.0.4.1+esm1",
"1.2-4.1ubuntu2.24.0.4.1+esm2"
]
}
],
"aliases": [],
"details": "Tim Boddy discovered that Expat, contained within the xmltok library, did\nnot properly handle memory reallocation when processing XML files. If a\nuser or application linked against Expat were tricked into opening a\ncrafted XML file, an attacker could cause a denial of service by consuming\nexcessive memory resources.\n",
"id": "USN-7307-1",
"modified": "2026-04-27T14:11:40Z",
"published": "2025-02-26T22:33:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7307-1"
},
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2012-1148"
}
],
"related": [],
"schema_version": "1.7.0",
"summary": "libxmltok vulnerability",
"upstream": [
"UBUNTU-CVE-2012-1148"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.