CVE-2026-57074 XML::Bare versions through 0.53 for Perl have an unbounded character lookahead

Critical 9.1 Published Updated

An attacker can cause an out-of-bounds read in the XML::Bare Perl library by providing truncated input, potentially leading to crashes or data exposure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-57074?

CVE-2026-57074 is a critical memory corruption vulnerability in CODECHILD XML::Bare, published on 16 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2026-57074?

How do I fix CVE-2026-57074?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-57074 being exploited?

There is no known exploitation of CVE-2026-57074 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-57074, GHSA-xm8x-vw7j-573w, UBUNTU-CVE-2026-57074.

Is CVE-2026-57074 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free