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.
| Product | Versions | Fixed 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.
Sources and references
- https://github.com/perl-net-saml2/perl-XML-Sig/commit/140489c923bec19ad31e6946a806aa8bc3367cc8.patch — CVE Program
- https://metacpan.org/release/TIMLEGGE/XML-Sig-0.74/changes — CVE Program
- http://www.openwall.com/lists/oss-security/2026/11/24/3 — NVD
Weaknesses (CWE): CWE-470
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.