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.
Published: 2026-07-16
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The XML::Bare library for Perl scans input buffers for markers such as "<![CDATA" or element terminators like ">" without first verifying that the calculated offsets remain within the provided data. When it encounters a truncated sequence, for example "<a/", the routine attempts to read beyond the end of the buffer. This unbounded read is a classic memory‑safety flaw identified as CWE‑125 and may expose sensitive memory contents or cause a program crash, but it does not provide a direct path to arbitrary code execution.

Affected Systems

The flaw affects the CODECHILD XML::Bare Perl module for versions 0.53 and earlier. Any Perl application that imports XML::Bare in one of those releases and parses XML documents—particularly those that accept user‑supplied XML—directly receives the impact.

Risk and Exploitability

The CVSS score of 9.1 classifies this vulnerability as critical, indicating a high potential impact if it remains unpatched. The EPSS score is below 1% and the vulnerability is not listed in CISA KEV, suggesting limited publicly known exploitation activity at present. Based on the description, it is inferred that an attacker could trigger the out‑of‑bounds read by supplying crafted XML input to an application that uses XML::Bare. This could be done remotely if the application accepts XML over the network, or locally if an attacker can control the XML payload. The primary consequence is potential leakage of internal state or a denial‑of‑service through a crash, but no elevated privileges or remote code execution are provided.

Generated by OpenCVE AI on August 3, 2026 at 02:55 UTC.

Remediation

Vendor Workaround

Apply the patch.


OpenCVE Recommended Actions

  • Apply the patch provided by CODECHILD for XML::Bare.
  • Upgrade to a version newer than 0.53, which includes the fix.
  • Validate or sanitize all XML input before parsing to ensure it is well‑formed and free of truncations.

Generated by OpenCVE AI on August 3, 2026 at 02:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Codechild
Codechild xml::bare
Vendors & Products Codechild
Codechild xml::bare

Fri, 17 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title XML::Bare versions through 0.53 for Perl have an unbounded character lookahead
Weaknesses CWE-125
References

Subscriptions

Codechild Xml::bare
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-17T18:07:06.943Z

Reserved: 2026-06-23T17:59:40.467Z

Link: CVE-2026-57074

cve-icon Vulnrichment

Updated: 2026-07-16T19:27:59.991Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T03:00:04Z

Weaknesses