Skip to content
DayZeroHub
Critical CVSS 9.8CVE-2026-134880

CVE-2026-134880: Code execution in XML::Sig for Perl before 0.74

Summary

XML::Sig for Perl, in versions before 0.74, allows code execution through the Algorithm attribute of a signed document. The CVSS 3.1 score is 9.8 and the severity is critical.

What happened

When verifying a document, XML::Sig takes the text after the last "#" in the Algorithm attributes of DigestMethod and SignatureMethod and looks it up with Digest::SHA->can. That lookup returns a code reference for any fully qualified function name, including Perl builtins in the CORE namespace. The function is called on the canonical form of the referenced element, so the document itself chooses both the function and its argument. An attacker who can submit a signed document can run a command as the verifying process. The weakness is classified as CWE-470.

Why it matters

The CVSS 3.1 score is 9.8 (source: ADP:CISA-ADP), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and the severity is critical. Per the vector, the attack is remote, low complexity, and requires neither privileges nor user interaction. The source does not indicate that the vulnerability is being exploited, and it is not listed in CISA's KEV catalog.

Affected products and versions

XML-Sig (Perl): versions < 0.74. The source does not state a vendor or other product details.

ProductVersionsFixed in
XML-Sig< 0.74—

Action recommended by the source

The source points to XML::Sig version 0.74, with published release notes and a patch: https://metacpan.org/release/TIMLEGGE/XML-Sig-0.74/changes and https://github.com/perl-net-saml2/perl-XML-Sig/commit/140489c923bec19ad31e6946a806aa8bc3367cc8.patch. The source does not state any other mitigations.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-470

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources