CVE-2006-10003XML::Parser versions through 2.47 for Perl has an off-by-one heap buffer overflow in…
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
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libxml-parser-perl | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libxml-parser-perl | Fixed | 2.47-1ubuntu0.25.10.1 | UBUNTU-CVE-2006-10003 |
| Ubuntu 24.04 | libxml-parser-perl | Fixed | 2.47-1ubuntu0.24.04.1 | UBUNTU-CVE-2006-10003 |
| Ubuntu 22.04 | libxml-parser-perl | Fixed | 2.46-3ubuntu0.1 | UBUNTU-CVE-2006-10003 |
| Ubuntu 20.04 | libxml-parser-perl | Fix pending | UBUNTU-CVE-2006-10003 | |
| Ubuntu 18.04 | libxml-parser-perl | Fix pending | UBUNTU-CVE-2006-10003 | |
| Ubuntu 16.04 | libxml-parser-perl | Fix pending | UBUNTU-CVE-2006-10003 | |
| Debian 14 | libxml-parser-perl | Fixed | 2.47-2 | DEBIAN-CVE-2006-10003 |
| Debian 13 | libxml-parser-perl | Fixed | 2.47-2~deb13u1 | DEBIAN-CVE-2006-10003 |
| Debian 12 | libxml-parser-perl | Fixed | 2.46-4+deb12u1 | DEBIAN-CVE-2006-10003 |
| Red Hat Enterprise Linux 10 | perl-XML-Parser | Fixed | 0:2.47-6.1.el10_1 | RHSA-2026:7680 |
| Red Hat Enterprise Linux 9 | perl-XML-Parser | Fixed | 0:2.46-9.1.el9_7 | RHSA-2026:7679 |
| Red Hat Enterprise Linux 8 | perl-XML-Parser | Fixed | 0:2.44-12.el8_10 | RHSA-2026:7681 |
| Red Hat Enterprise Linux 6 | perl-XML-Parser | Will not fix Will not fix | ||
| AlmaLinux 10 | perl-XML-Parser | Fixed | 2.47-6.1.el10_1 | ALSA-2026:7680 |
| AlmaLinux 9 | perl-XML-Parser | Fixed | 2.46-9.1.el9_7 | ALSA-2026:7679 |
| AlmaLinux 8 | perl-XML-Parser | Fixed | 2.44-12.el8_10 | ALSA-2026:7681 |
| Rocky Linux 10 | perl-XML-Parser | Fixed | 0:2.47-6.1.el10_1 | RLSA-2026:7680 |
| Rocky Linux 9 | perl-XML-Parser | Fixed | 0:2.46-9.1.el9_7 | RLSA-2026:7679 |
| Rocky Linux 8 | perl-XML-Parser | Fixed | 0:2.44-12.el8_10 | RLSA-2026:7681 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- TODDR XML::Parser: affected: up to 2.47
Solution: Apply the patch that has been publicly available since 2006-06-13 or upgrade to version 2.48 or later when it is released.
Workaround: Apply the patch that has been publicly available since 2006-06-13.
Vendor advisories:
References
- https://rt.cpan.org/Ticket/Display.html?id=19860
- https://github.com/cpan-authors/XML-Parser/issues/39
- https://github.com/cpan-authors/XML-Parser/commit/3eb9cc95420fa0c3f76947c4708962546bf27cfd.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.