Skip to content

CVE-2006-10003 XML::Parser versions through 2.47 for Perl has an off-by-one heap buffer overflow in st_serial_stack

CriticalCVSS 9.8 EPSS 0.63%
Published
Updated
Exploit status
No public exploit known

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

Affected products

ProductAffected versionsFixed in
azure linux perl-XML-Parser(Azure Linux:3.0) < 2.47-2 2.47-2
debian/libxml-parser-perl(Debian:12) < 2.46-4+deb12u1 2.46-4+deb12u1
debian/libxml-parser-perl(Debian:12) = 2.46-4 No fix listed
debian/libxml-parser-perl(Debian:13) < 2.47-2~deb13u1 2.47-2~deb13u1
debian/libxml-parser-perl(Debian:13) = 2.47-1 No fix listed
debian/libxml-parser-perl(Debian:14) < 2.47-2 2.47-2
debian/libxml-parser-perl(Debian:14) = 2.47-1 No fix listed
debian/libxml-parser-perl(Debian:14) = 2.47-2~deb13u1 No fix listed
TODDR XML::Parser <= 2.47 No fix listed
redhat enterprise linux < 0:2.47-6.1.el10_1 0:2.47-6.1.el10_1
redhat enterprise linux eus < 0:2.47-6.el10_0.1 0:2.47-6.el10_0.1
redhat rhel els < 0:2.41-10.el7_9.1 0:2.41-10.el7_9.1
redhat enterprise linux < 0:2.44-12.el8_10 0:2.44-12.el8_10
redhat rhel aus < 0:2.44-11.el8_2.1 0:2.44-11.el8_2.1
redhat rhel aus < 0:2.44-11.el8_4.1 0:2.44-11.el8_4.1
redhat rhel eus long life < 0:2.44-11.el8_4.1 0:2.44-11.el8_4.1
redhat rhel aus < 0:2.44-11.el8_6.1 0:2.44-11.el8_6.1
redhat rhel tus < 0:2.44-11.el8_6.1 0:2.44-11.el8_6.1
redhat rhel e4s < 0:2.44-11.el8_6.1 0:2.44-11.el8_6.1
redhat rhel tus < 0:2.44-11.el8_8.1 0:2.44-11.el8_8.1
redhat rhel e4s < 0:2.44-11.el8_8.1 0:2.44-11.el8_8.1
redhat enterprise linux < 0:2.46-9.1.el9_7 0:2.46-9.1.el9_7
redhat rhel e4s < 0:2.46-9.el9_0.1 0:2.46-9.el9_0.1
redhat rhel e4s < 0:2.46-9.el9_2.1 0:2.46-9.el9_2.1
redhat rhel eus < 0:2.46-9.el9_4.1 0:2.46-9.el9_4.1
Show 23 more
ProductAffected versionsFixed in
redhat rhel eus < 0:2.46-9.el9_6.1 0:2.46-9.el9_6.1
redhat enterprise linux All versions No fix listed
redhat/perl-XML-Parser(Red Hat:enterprise_linux:10.1) < 2.47-6.1.el10_1 2.47-6.1.el10_1
redhat/perl-XML-Parser(Red Hat:enterprise_linux_eus:10.0) < 2.47-6.el10_0.1 2.47-6.el10_0.1
redhat/perl-XML-Parser(Red Hat:rhel_els:7) < 2.41-10.el7_9.1 2.41-10.el7_9.1
redhat/perl-XML-Parser(Red Hat:enterprise_linux:8) < 2.44-12.el8_10 2.44-12.el8_10
redhat/perl-XML-Parser(Red Hat:rhel_aus:8.2) < 2.44-11.el8_2.1 2.44-11.el8_2.1
redhat/perl-XML-Parser(Red Hat:rhel_aus:8.4) < 2.44-11.el8_4.1 2.44-11.el8_4.1
redhat/perl-XML-Parser(Red Hat:rhel_eus_long_life:8.4) < 2.44-11.el8_4.1 2.44-11.el8_4.1
redhat/perl-XML-Parser(Red Hat:rhel_aus:8.6) < 2.44-11.el8_6.1 2.44-11.el8_6.1
redhat/perl-XML-Parser(Red Hat:rhel_tus:8.6) < 2.44-11.el8_6.1 2.44-11.el8_6.1
redhat/perl-XML-Parser(Red Hat:rhel_e4s:8.6) < 2.44-11.el8_6.1 2.44-11.el8_6.1
redhat/perl-XML-Parser(Red Hat:rhel_tus:8.8) < 2.44-11.el8_8.1 2.44-11.el8_8.1
redhat/perl-XML-Parser(Red Hat:rhel_e4s:8.8) < 2.44-11.el8_8.1 2.44-11.el8_8.1
redhat/perl-XML-Parser(Red Hat:enterprise_linux:9) < 2.46-9.1.el9_7 2.46-9.1.el9_7
redhat/perl-XML-Parser(Red Hat:rhel_e4s:9.0) < 2.46-9.el9_0.1 2.46-9.el9_0.1
redhat/perl-XML-Parser(Red Hat:rhel_e4s:9.2) < 2.46-9.el9_2.1 2.46-9.el9_2.1
redhat/perl-XML-Parser(Red Hat:rhel_eus:9.4) < 2.46-9.el9_4.1 2.46-9.el9_4.1
redhat/perl-XML-Parser(Red Hat:rhel_eus:9.6) < 2.46-9.el9_6.1 2.46-9.el9_6.1
redhat/perl-XML-Parser(Red Hat:rhel_els:6) All versions No fix listed
ubuntu/libxml-parser-perl(Ubuntu:24.04) < 2.47-1ubuntu0.24.04.1 2.47-1ubuntu0.24.04.1
TODDR XML::Parser < 2.48 2.48
ubuntu/libxml-parser-perl(Ubuntu:22.04) < 2.46-3ubuntu0.1 2.46-3ubuntu0.1

References