CPANSA-XML-Parser-2006-10003: XML-Parser vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-03-19T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-03-19T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 9.8 | Severity | |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
XML::Parser versions through 2.47 for Perl has an off-by-one heap buffer overflow in st_serial_stack. In the case (stackptr == stacksize - 1), the stack will NOT be expanded. Then the new value will be written at location (++stackptr), which equals stacksize and therefore falls just outside the allocated buffer. The bug can be observed when parsing an XML file with very deep element nesting
Vulnerabilities
CVE-2006-10003
Vulnerability DescriptionXML::Parser versions through 2.47 for Perl has an off-by-one heap buffer overflow in st_serial_stack.
In the case (stackptr == stacksize - 1), the stack will NOT be expanded. Then the new value will be written at location (++stackptr), which equals stacksize and therefore falls just outside the allocated buffer.
The bug can be observed when parsing an XML file with very deep element nesting
| Weakness | CWE-122 : Heap-based Buffer Overflow |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| XML-Parser less than or equal 2.47 |
|
Fixed
- XML-Parser greater than or equal 2.48
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-XML-Parser-2006-10003 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-xml-parser-2006-10003.json - https://github.com/cpan-authors/XML-Parser/commit/3eb9cc95420fa0c3f76947c4708962546bf27cfd.patch external
https://github.com/cpan-authors/XML-Parser/commit/3eb9cc95420fa0c3f76947c4708962546bf27cfd.patch - https://github.com/cpan-authors/XML-Parser/issues/39 external
https://github.com/cpan-authors/XML-Parser/issues/39 - https://rt.cpan.org/Ticket/Display.html?id=19860 external
https://rt.cpan.org/Ticket/Display.html?id=19860 - http://www.openwall.com/lists/oss-security/2026/03/19/2 external
http://www.openwall.com/lists/oss-security/2026/03/19/2 - CVE-2006-10003 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2006-10003
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Thu Mar 19 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/