Incorrect Calculation of Buffer Size Affecting perl-XML-Parser package, versions <0:2.41-10.amzn2.0.3


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PERLXMLPARSER-16081037
  • published16 Apr 2026
  • disclosed19 Mar 2026

Introduced: 19 Mar 2026

CVE-2006-10002  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-XML-Parser to version 0:2.41-10.amzn2.0.3 or higher.
This issue was patched in ALAS2-2026-3230.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-XML-Parser package and not the perl-XML-Parser package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1