CVE-2006-10002 Details
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. A :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.
A buffer overflow vulnerability has been identified in XML::Parser versions prior to 2.47 for Perl. This issue arises in the Expat.xs file, specifically within the parse_stream() function, when a filehandle is opened with a :utf8 PerlIO layer. Under these conditions, Perl's read() function returns decoded characters, while SvPV() provides multi-byte UTF-8 bytes that can exceed the size of the pre-allocated XML input buffer. This discrepancy leads to heap corruption, causing a double free or corruption error, and crashes the Perl interpreter.
Users can update to XML::Parser version 2.47 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cpan-authors/XML-Parser/commit/56b0509dfc6b559cd7555ea81ee62e3622069255.patch | CPANSec | |
| https://github.com/cpan-authors/XML-Parser/issues/64 | CPANSec | Issue Tracking |
| https://metacpan.org/release/TODDR/XML-Parser-2.46/changes | CPANSec | |
| https://rt.cpan.org/Ticket/Display.html?id=19859 | CPANSec | Mailing List |
| http://www.openwall.com/lists/oss-security/2026/03/19/1 | CVE | Mailing ListPatchThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2026/03/22/3 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | CPANSec |
| CWE-176 | Improper Handling of Unicode Encoding | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| toddr xml::parser | < 2.48 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 16, 2026 | CVE Modified | CISA-ADP |
| Jun 16, 2026 | CVE Modified | CPANSec |
| Mar 23, 2026 | CVE Modified | CVE |
| Mar 21, 2026 | CVE Modified | CPANSec |
| Mar 19, 2026 | Initial Analysis | [email protected] |
| Mar 19, 2026 | CVE Modified | CVE |
| Mar 19, 2026 | CVE Modified | CISA-ADP |
| Mar 19, 2026 | New CVE Received | CPANSec |