High
Security advisory
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-40674
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:12 UTC · Revision 1
Source evidence
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
osv:CVE-2022-40674
Complete source record
{
"id": "83d5041c740a810320d2ee236a2b582cf90e3e9a2b668584e4e5a4423f533fc4",
"url": "https://osv.dev/vulnerability/CVE-2022-40674",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-40674",
"summary": "libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.",
"evidence": "osv:CVE-2022-40674",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-40674",
"aliases": [
"CVE-2022-40674"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libexpat/libexpat",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "d77291a4824d78e697c5dc2b8024fd65ab31e209"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.4.9"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.4.9"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"R_2_4_8",
"R_2_4_7",
"R_2_4_6",
"R_2_4_5",
"R_2_4_4",
"R_2_4_3",
"R_2_4_2",
"R_2_4_1",
"R_2_4_0",
"R_2_3_0",
"R_2_2_10",
"R_2_2_9",
"R_2_2_8",
"R_2_2_7",
"R_2_2_6",
"R_2_2_5",
"R_2_2_4",
"R_2_2_3",
"R_2_2_2",
"R_2_2_1",
"R_2_2_0",
"R_2_1_1",
"R_2_1_0",
"R_2_0_1",
"R_2_0_0",
"R_1_95_8",
"R_1_95_7",
"R_1_95_6",
"R_1_95_5",
"R_1_95_4",
"R_1_95_3",
"R_1_95_2",
"R_1_95_0",
"libexpat-alpha-1",
"start",
"sourceforge_init",
"jclark-orig",
"V20000512",
"V19991013",
"V19990728",
"V19990709",
"V19990626",
"V1_1",
"V19990425",
"V1990307",
"V19990109",
"V19981231",
"V19981122",
"V1_0",
"beta4",
"beta3",
"beta2",
"REC1_0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-40674.json"
}
}
],
"modified": "2026-10-28T02:30:41.421634476Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://cert-portal.siemens.com/productcert/html/ssa-558014.html",
"https://cert-portal.siemens.com/productcert/html/ssa-892048.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40674.json",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/",
"https://nvd.nist.gov/vuln/detail/CVE-2022-40674",
"https://security.gentoo.org/glsa/202209-24",
"https://security.gentoo.org/glsa/202211-06",
"https://security.netapp.com/advisory/ntap-20221028-0008/",
"https://www.debian.org/security/2022/dsa-5236",
"https://github.com/libexpat/libexpat/pull/629",
"https://github.com/libexpat/libexpat/pull/640",
"https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40674.json"
}
},
"related_cves": [
{
"value": "CVE-2022-40674",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 508942,
"published_at": "2022-09-14T00:00:00+00:00"
}