---
title: Perl XML::Sig before 0.74 runs attacker-chosen functions from a signed document's Algorithm attribute (CVE-2026-134880) | ctxsec
url: https://ctxsec.com/items/perl-xml-sig-cve-2026-134880-algorithm-attribute-calls-any-function-code-execution-fixed-0-74
description: "CPANSec says XML::Sig looks up the text after the last # in DigestMethod and SignatureMethod Algorithm attributes with Digest::SHA->can, which returns any fully qualified function, CORE builtins included, and calls it on the referenced element. Anyone who can submit a signed document, such as a SAML response, can run a command as the verifying process. Upgrade to 0.74."
status: "primary (CPAN Security Group advisory on oss-security, Nov 24, 2026)"
published: 2026-11-24
---

> CPANSec says XML::Sig looks up the text after the last # in DigestMethod and SignatureMethod Algorithm attributes with Digest::SHA->can, which returns any fully qualified function, CORE builtins included, and calls it on the referenced element. Anyone who can submit a signed document, such as a SAML response, can run a command as the verifying process. Upgrade to 0.74.

[← Cybersecurity News](/news) · [markdown](/items/perl-xml-sig-cve-2026-134880-algorithm-attribute-calls-any-function-code-execution-fixed-0-74.md)

primary (CPAN Security Group advisory on oss-security, Nov 24, 2026)

2026-11-24 4:46 AM ET

### Perl XML::Sig before 0.74 runs attacker-chosen functions from a signed document's Algorithm attribute (CVE-2026-134880)

- CWE-470: externally controlled input selects code.
- XML::Sig underpins Net::SAML2 in the perl-net-saml2 project, so Perl SAML service providers are the obvious exposure; check dependency trees for XML-Sig below 0.74.
- Fix commit 140489c and the 0.74 changes are linked from the advisory.

Sources: [oss-security: CVE-2026-134880 XML::Sig (CPAN Security Group, Nov 24, 2026)](https://seclists.org/oss-sec/2026/q4/863)
