Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Web

Advisory Critical CVE Analysis

XML::Sig Perl module before 0.74 flaw can let crafted signed documents run commands (CVE-2026-134880)

CVE-2026-134880 affects XML::Sig for Perl in all versions before 0.74 and can allow commands to run when a crafted signed document is verified. According to the CPAN Security Group's oss-security advisory, upgrading to 0.74 or later is the vendor remedy.

WebVulnerabilities

Key points

  • CVE-2026-134880 affects XML::Sig (XML-Sig) for Perl in all versions before 0.74.
  • A crafted signed document submitted for verification can lead to command execution with the verifying process's privileges.
  • The flaw stems from document-controlled algorithm names being used to select and call a function (CWE-470).
  • The fix is upgrading to XML-Sig 0.74 or later; the report gives no severity score or exploitation status.

What happened

The CPAN Security Group published an advisory on oss-security describing CVE-2026-134880, a flaw in the XML::Sig Perl distribution (XML-Sig) that affects all versions before 0.74. According to the report, the flaw can lead to command execution when the software verifies a crafted signed document.

Technical cause

According to the report, the verification code takes the text after the final hash character in the DigestMethod and SignatureMethod Algorithm attribute values and uses it to look up a function through Digest::SHA's can method. That lookup can return a callable for any fully qualified function name, including Perl core builtins in the CORE namespace. The function is then applied to the canonical form of an element the document references, so the document effectively chooses both the function and its input. The report classifies the weakness as CWE-470.

Exposure and open questions

The report says an attacker only needs to be able to submit a signed document for verification, and that injected commands would run with the privileges of the verifying process. It does not give a severity score, and it does not state whether exploitation has been observed or whether a proof of concept exists. The NVD entry describes the same behavior.

Remedy

The vendor-side fix is to upgrade to XML-Sig 0.74 or later. A patch commit is available in the perl-net-saml2 XML-Sig GitHub repository, and release notes for 0.74 are listed on MetaCPAN. For full details, see the original oss-security post.

What to do

  1. Upgrade XML-Sig (XML::Sig) to version 0.74 or later.
  2. Review the patch commit in the perl-net-saml2 XML-Sig GitHub repository and the 0.74 release notes on MetaCPAN.
  3. Prioritize systems that verify signed XML documents from untrusted sources, since the report says an attacker only needs to be able to submit a document for verification.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“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”

Posted by Timothy Legge on Nov 24 ======================================================================== CVE-2026-134880 CPAN Security Group ======================================================================== CVE ID: CVE-2026-134880 Distribution: XML-Sig Versions: before 0.74 MetaCPAN: https://metacpan.org/dist/XML-Sig VCS Repo: https://github.com/perl-net-saml2/perl-XML-Sig XML::Sig versi…

Vulnerabilities mentioned