CVE-2026-134880: 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
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
XML-Sigto a version that resolves this vulnerability.Fixed in 0.74
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using XML::Sig for Perl before version 0.74 are affected when they verify signed XML documents that an attacker can submit to the verifying process.
What does an attacker need to exploit this issue?
The attacker needs the ability to submit a signed document for verification. They control the DigestMethod or SignatureMethod Algorithm attribute, which selects a fully qualified function name, and the referenced element's canonical form becomes that function's argument.
Does exploitation require a valid signature?
The available information states that an attacker who can submit a signed document can run a command as the verifying process. It does not establish whether an invalid or unsigned document reaches the vulnerable function call.
What privileges would successful exploitation have?
Commands run with the privileges of the process performing XML signature verification.