CVE-2006-10002 PUBLISHED

XML::Parser versions through 2.47 for Perl could overflow the pre-allocated buffer size cause a heap corruption (double free or corruption) and crashes

Assigner: CPANSec
Reserved: 16.03.2026 Published: 19.03.2026 Updated: 19.03.2026

XML::Parser versions through 2.47 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.

Product Status

Vendor TODDR
Product XML::Parser
Versions Default: unaffected
  • affected from 0 to 2.47 (incl.)

Workarounds

Apply the patch that has been publicly available since 2006-06-13.

Solutions

Apply the patch that has been publicly available since 2006-06-13 or upgrade to version 2.48 or later when it is released.

References

Problem Types

  • CWE-122 Heap-based Buffer Overflow CWE
  • CWE-176 Improper Handling of Unicode Encoding CWE