{"id":"CVE-2006-10002","state":"PUBLISHED","title":"XML::Parser versions through 2.45 for Perl could overflow the pre-allocated buffer size cause a heap corruption (double free or corruption) and crashes","description":"XML::Parser versions through 2.45 for Perl could overflow the pre-allocated buffer size cause a heap corruption (double free or corruption) and crashes.\n\nA :utf8 PerlIO layer, parse_stream() in Expat.xs could overflow the XML input buffer because Perl's read() returns decoded characters while SvPV() gives back multi-byte UTF-8 bytes that can exceed the pre-allocated buffer size. This can cause heap corruption (double free or corruption) and crashes.","publishedAt":"2026-03-19T11:03:46.888Z","updatedAt":"2026-04-29T14:36:41.837Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["TODDR XML::Parser"],"affected":[{"vendor":"TODDR","product":"XML::Parser","packageName":"XML-Parser","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.45","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["Expat.xs"],"programRoutines":[{"name":"parse_stream"}],"repo":"http://github.com/toddr/XML-Parser"}],"references":["https://rt.cpan.org/Ticket/Display.html?id=19859","https://github.com/cpan-authors/XML-Parser/issues/64","https://metacpan.org/release/TODDR/XML-Parser-2.46/changes","https://github.com/cpan-authors/XML-Parser/commit/56b0509dfc6b559cd7555ea81ee62e3622069255.patch","http://www.openwall.com/lists/oss-security/2026/03/19/1","http://www.openwall.com/lists/oss-security/2026/03/22/3"],"weaknesses":["CWE-122","CWE-176"],"ingestedAt":"2026-10-29T19:27:35.992Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2006/10xxx/CVE-2006-10002.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2006-10002","state":"PUBLISHED","datePublished":"2026-03-19T11:03:46.888Z","dateUpdated":"2026-04-29T14:36:41.837Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-03-16T22:47:45.685Z"},"containers":{"cna":{"title":"XML::Parser versions through 2.45 for Perl could overflow the pre-allocated buffer size cause a heap corruption (double free or corruption) and crashes","descriptions":[{"lang":"en","value":"XML::Parser versions through 2.45 for Perl could overflow the pre-allocated buffer size cause a heap corruption (double free or corruption) and crashes.\n\nA :utf8 PerlIO layer, parse_stream() in Expat.xs could overflow the XML input buffer because Perl's read() returns decoded characters while SvPV() gives back multi-byte UTF-8 bytes that can exceed the pre-allocated buffer size. This can cause heap corruption (double free or corruption) and crashes."}],"affected":[{"vendor":"TODDR","product":"XML::Parser","packageName":"XML-Parser","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.45","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["Expat.xs"],"programRoutines":[{"name":"parse_stream"}],"repo":"http://github.com/toddr/XML-Parser"}],"references":[{"url":"https://rt.cpan.org/Ticket/Display.html?id=19859","tags":["issue-tracking"]},{"url":"https://github.com/cpan-authors/XML-Parser/issues/64","tags":["issue-tracking"]},{"url":"https://metacpan.org/release/TODDR/XML-Parser-2.46/changes","tags":["release-notes"]},{"url":"https://github.com/cpan-authors/XML-Parser/commit/56b0509dfc6b559cd7555ea81ee62e3622069255.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-176","description":"CWE-176 Improper Handling of Unicode Encoding","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-03-21T11:43:43.607Z"},"solutions":[{"lang":"en","value":"Apply the patch that has been publicly available since 2006-06-13 or upgrade to version 2.46 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2006-06-13T00:00:00.000Z","value":"Issue logged in Request Tracker for XML::Parser"},{"lang":"en","time":"2006-08-11T00:00:00.000Z","value":"Patch provided in Request Tracker for XML::Parser"},{"lang":"en","time":"2019-09-24T00:00:00.000Z","value":"Issue migrated to github issue tracker"},{"lang":"en","time":"2019-09-24T00:00:00.000Z","value":"Patch provided in github issue tracker"},{"lang":"en","time":"2019-09-24T00:00:00.000Z","value":"Included in release 2.46 released to CPAN"}],"workarounds":[{"lang":"en","value":"Apply the patch that has been publicly available since 2006-06-13."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-03-19T17:11:03.634936Z","id":"CVE-2006-10002","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-29T14:36:41.837Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/03/19/1"},{"url":"http://www.openwall.com/lists/oss-security/2026/03/22/3"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-03-22T23:06:42.361Z"}}]}}}