# 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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.36%, higher than 72% of CVEs (2026-12-01)
- Published: 2026-11-24T03:01:58.552Z
- Modified: 2026-11-25T16:17:42.027Z
- Weaknesses: CWE-470
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- XML-Sig: before 0.74

## References

- <https://github.com/perl-net-saml2/perl-XML-Sig/commit/140489c923bec19ad31e6946a806aa8bc3367cc8.patch> (patch)
- <https://metacpan.org/release/TIMLEGGE/XML-Sig-0.74/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/11/24/3>

## Sources

- CVE List: [CVE-2026-134880](https://www.cve.org/CVERecord?id=CVE-2026-134880), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-134880](https://nvd.nist.gov/vuln/detail/CVE-2026-134880), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-134880 · Whole record: https://cve.day/CVE-2026-134880.json · Rebuilt by cve.day 2026-11-25T23:18:30.765Z
