CVE-2026-57074: XML::Bare versions through 0.53 for Perl have an unbounded character lookahead Robert Rothenberg 16 Jul 2026 16:16 UTC

========================================================================
CVE-2026-57074                                       CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-57074
   Distribution:  XML-Bare
       Versions:  through 0.53

       MetaCPAN:  https://metacpan.org/dist/XML-Bare
       VCS Repo:  https://github.com/nanoscopic/perl-XML-Bare

XML::Bare versions through 0.53 for Perl have an unbounded character
lookahead

Description
-----------
XML::Bare versions through 0.53 for Perl have an unbounded character
lookahead.

The parserc_parse function attempts to check for multicharacter strings
such as "<![CDATA" or element terminators such as ">" without checking
that the offsets are within the buffer.

Truncated strings such as "<a/" can trigger an out-of-bounds read.

Problem types
-------------
- CWE-125 Out-of-bounds Read

Workarounds
-----------
Apply the patch.

References
----------
https://github.com/nanoscopic/perl-XML-Bare/pull/1
https://security.metacpan.org/patches/X/XML-Bare/0.53/CVE-2026-57074-r1.patch