Description
XML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributes.

The parserc_parse function never advances the attribute-parse state cursor on certain malformed attribute forms, looping forever.

Nameless attributes such as "<a ='c'>" or unbalanced quotes "<a b='''''''c'>" can trigger this condition.
Published: 2026-07-16
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The XML::Bare parser enters an infinite loop when it encounters certain malformed attribute forms, such as nameless attributes or unbalanced quotes. The failure to advance the parsing cursor leads to a denial‑of‑service condition, effectively hanging the process that invoked the parser. This flaw is classified as CWE‑835, illustrating a loop error that compromises reliability.

Affected Systems

Perl applications that use CODECHILD XML::Bare library versions 0.53 and earlier are vulnerable. Any deployment that imports XML data using these versions must be addressed.

Risk and Exploitability

While the EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog, the infinite‑loop behavior represents a moderate‑to‑high‑risk denial‑of‑service issue. The CVSS score of 7.5 indicates high severity. An attacker who can supply malformed XML—whether through a web request, Email, or any other data channel—can trigger the crash, halting the affected service. The attack vector is inferred to be remote exploitation via crafted XML input to vulnerable applications.

Generated by OpenCVE AI on August 1, 2026 at 08:43 UTC.

Remediation

Vendor Workaround

Apply the patch.


OpenCVE Recommended Actions

  • Apply the patch provided by CODECHILD to the XML::Bare library.
  • Upgrade to the latest version of XML::Bare that includes the fix, if a newer version is available.
  • Validate or sanitize all external XML input to eliminate malformed attributes before it reaches the parser.
  • Configure process supervision or monitoring to detect and restart hanging processes for continuity.

Generated by OpenCVE AI on August 1, 2026 at 08:43 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 13:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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 will hang in an infinite loop when parsing malformed attributes. The parserc_parse function never advances the attribute-parse state cursor on certain malformed attribute forms, looping forever. Nameless attributes such as "<a ='c'>" or unbalanced quotes "<a b='''''''c'>" can trigger this condition.
Title XML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributes
Weaknesses CWE-835
References

Subscriptions

Codechild Xml::bare
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-17T12:51:52.550Z

Reserved: 2026-06-26T08:38:33.750Z

Link: CVE-2026-13401

cve-icon Vulnrichment

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

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:45:02Z

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')