Threat Feed

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

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-24

Description

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.

Enclave's analysis

XML::Sig before 0.74 takes the Algorithm attribute out of a signed XML document and resolves it straight into a Perl function call, including CORE builtins, with no allow-list. If a vulnerable app verifies a document an attacker controls and doesn't pin a trusted certificate, the document's own embedded key can pass the signature check first, then the attacker-named function runs as the digest step. No public PoC exists yet and the actual builtin-call-to-command-execution step hasn't been independently demonstrated. Upgrade to 0.74.

Fix

Upgrade Affected product to 0.74; XML::Sig (CPAN distribution XML-Sig) to 0.74.

Vendor advisory

Affected versions

ProductVulnerableFixed in
Affected product0 before 0.740.74
XML::Sig (CPAN distribution XML-Sig)< 0.740.74

Seen in 2 sources