Read the docs

XML::Sig for Perl allows code execution via Algorithm attribute

Priority MEDIUM 52CWE-470Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.

Summary

XML::Sig versions before 0.74 for Perl allow code execution through the Algorithm attribute of a signed document. Verify takes the text after the last # in the DigestMethod and SignatureMethod Algorithm attributes and looks it up with Digest::SHA->can, which returns a code reference for any fully qualified function name, including Perl builtins in the CORE namespace. The digest function is then called on the canonical form of the referenced element, so the document chooses both the function and its argument, and an attacker who can submit a signed document can run a command as the verifying process. The CVSS 3.1 base score is 9.8 (CRITICAL), and the weakness is CWE-470.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

XML::Sig versions before 0.74 for Perl allow code execution via a document's Algorithm attribute that verify resolves to a function name and calls. The text after the last `#` in the DigestMethod and SignatureMethod Algorithm attributes is looked up with Digest::SHA->can. That returns a code reference for any fully qualified function name, Perl builtins in the CORE namespace included. The digest function is called on the canonical form of the referenced element, so the document picks both the function and its argument. An attacker who can submit a signed document can run a command as the verifying process.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01361 71st percentileScored 2026-11-30
Fix Fixed XML-Sig: 0.74

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—XML-Sigbefore 0.740.74Patch availableCNA
  • XML-Sig Vendor— Affected before 0.74 Fixed in 0.74 Patch available CNA

Remediation

Upgrade XML::Sig to version 0.74 or later, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA XML-Sig Fixed in 0.74

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-134880
  2. 2026-11-24 Alias added: GHSA-g668-j8fg-m9x6
  3. 2026-11-25 CVSS score added · CISA ADP
  4. 2026-11-25 CISA SSVC decision points changed
  5. 2026-11-26 EPSS moved to the 50th–90th percentile

References

Sources