Skip to main content

XML::Sig EUVDEUVD-2026-133603

| CVE-2026-134880 CRITICAL
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-11-24 CPANSec GHSA-g668-j8fg-m9x6
9.8
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted signed XML to verifier
  2. Delivery
    Point Algorithm attribute after '#' at CORE builtin
  3. Exploit
    verify() resolves name via Digest::SHA->can()
  4. Execution
    Builtin invoked on canonical element content
  5. Impact
    Command runs as verifying process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

Requires an application that uses XML::Sig (versions before 0.74) to verify() attacker-submitted XML documents, such as a Perl SAML2 service validating signed responses or assertions. No authentication is required (PR:N), and exploitation does not depend on the signature being valid because the malicious Algorithm name is resolved and its function invoked during digest/signature processing. The limiting factors are deployment-specific: the attacker must be able to reach an endpoint that performs XML::Sig verification, the installed version must be < 0.74, and the only complete fix per the vendor is upgrading to 0.74.

Impact

Signals align toward genuine high priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H) describes a remotely reachable, unauthenticated, low-complexity flaw with full code-execution impact, and the vendor commit confirms the mechanism (CWE-470, unsafe reflection via Digest::SHA->can). The vuln.today Decision label is act_now and CPANSec/the vendor Changes entry say 'Upgrade immediately,' consistent with the technical impact. The tempering signal is exploitation likelihood: EPSS is only 0.44% (39th percentile) and the CVE is NOT listed in CISA KEV, and no working exploit reference is provided - so there is no evidence of active or widespread exploitation yet. This is best read as a high-severity, high-urgency issue to patch proactively rather than one with confirmed in-the-wild activity; the low EPSS reflects the niche Perl/SAML footprint and absence of public exploit code, not a lower technical severity. No signals conflict with the CVSS vector here.

Exploit ScenarioDerived

An attacker who can submit a signed XML document to a service that verifies it with XML::Sig (for example a Perl SAML2 relying party processing a SAML response) crafts the DigestMethod or SignatureMethod Algorithm attribute so the text after the final '#' names a Perl CORE builtin. During verify(), that name is resolved to a code reference and invoked on the canonical form of a referenced element, letting the document choose both the function and its argument and run a command as the verifying process. No public exploit code is referenced, but the vendor commit fully documents the mechanism.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

XML::Sig versions before 0.74 for Perl resolve an attacker-supplied hash algorithm name from a signed XML document into a Perl code reference and call it, so anyone able to submit a document to a verify() endpoint can invoke an arbitrary Perl function - CORE builtins included - with the canonicalized element as its argument, effectively gaining command execution as the verifying process. The flaw is reachable unauthenticated over the network (CVSS 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and does not require the signature to be valid, since the malicious algorithm name is looked up and executed during digest/signature processing. Exposure is limited to applications such as Perl SAML2 or WS-Security services that pass untrusted XML to XML::Sig; no public exploit code was identified at time of analysis, EPSS is 0.44% (39th percentile), and the vendor-released fix is version 0.74.

RemediationAI

Vendor-released patch: XML::Sig 0.74 - upgrade immediately, as the CPAN release notes state, since upgrading is the only complete fix. Install XML-Sig-0.74 from MetaCPAN (https://metacpan.org/release/TIMLEGGE/XML-Sig-0.74/changes) or pin the distribution to 0.74 in your dependency manifest, and verify the deployed version, since a stale system or bundled copy of XML::Sig will keep resolving document-supplied algorithm names. If an upgrade cannot be staged at once, the upstream commit https://github.com/perl-net-saml2/perl-XML-Sig/commit/140489c923bec19ad31e6946a806aa8bc3367cc8.patch can be applied to the installed tree; it replaces the Digest::SHA->can()/Crypt::Digest::RIPEMD160->can() lookups in verify(), _verify_hmac, _calc_dsa_signature and _calc_hmac_signature with allow-list lookups limited to sha1, sha224, sha256, sha384, sha512 and ripemd160, at the cost of rejecting any non-standard or experimental algorithm URI a peer might legitimately use. Until patched code is running, the exposure is confined to endpoints that feed attacker-reachable XML into verify(); reducing which services accept externally supplied signed documents, or fronting those endpoints with request filtering, limits reachability but does not remove the underlying unsafe resolution and carries the risk of blocking legitimate SAML traffic. Details are in the oss-security advisory https://seclists.org/oss-sec/2026/q4/863.

Affected ProductsAI

XML::Sig, the Perl XML Digital Signature module distributed on CPAN, in all versions before 0.74. Any application embedding it is affected when it verifies attacker-submitted XML - typically Perl SAML2 service providers or identity providers validating signed Responses or Assertions, and SOAP/WS-Security stacks performing XMLDSig verification - as are the signing routines that share the same algorithm resolution code. The fix is published as the XML-Sig-0.74 CPAN release (https://metacpan.org/release/TIMLEGGE/XML-Sig-0.74/changes) with the code change in commit 140489c923bec19ad31e6946a806aa8bc3367cc8 (https://github.com/perl-net-saml2/perl-XML-Sig/commit/140489c923bec19ad31e6946a806aa8bc3367cc8.patch); the vendor advisory thread is at https://seclists.org/oss-sec/2026/q4/863 and the EUVD entry at EUVD-2026-133603.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

XML::Sig implements XML Digital Signature (XMLDSig) signing and verification in Perl. In versions before 0.74, verify() took the text after the last '#' in the DigestMethod and SignatureMethod Algorithm attributes and passed it to Digest::SHA->can() (falling back to Crypt::Digest::RIPEMD160->can()), then invoked the returned code reference on the canonical form of the referenced element. Because Perl's ->can() resolves any fully qualified function name present in the symbol table - including Perl builtins in the CORE namespace - a document could name an arbitrary function as its 'digest algorithm' and use the canonicalized element as the argument, making both the function and its input attacker-controlled. This is CWE-470 (Use of Externally-Controlled Input to Select Classes or Code, i.e. unsafe reflection). The HMAC verification path constructed 'hmac_' . sig_hash before the lookup, and the DSA and HMAC calculation routines performed the same unchecked resolution. The upstream fix in 0.74 stops importing Digest::SHA functions into the package, builds fixed allow-lists of supported hash algorithm constants at load time (%HASH_FUNCTION for sha1/224/256/384/512 and ripemd160, %HMAC_FUNCTION for the HMAC variants), and routes every document-sourced algorithm name through a _hash_function() helper that dies on anything not in the allow-list; ->can() is retained only over hard-coded constant names to skip hashes the installed module version does not provide.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

A document submitted to a verifier triggers arbitrary function/command execution with no authentication or user interaction, so AV:N/AC:L/PR:N/UI:N and full C:H/I:H/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Nov 25, 2026 - 16:22 NVD
9.8 (CRITICAL)
CVE Published
Nov 24, 2026 - 03:01 cve.org
CRITICAL 9.8
CVE Published
Nov 24, 2026 - 03:01 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Perl module XML::Sig, used for XML signature verification in SAML2 and WS-Security services, contains a critical vulnerability that permits unauthenticated remote code execution. Any organization operating Perl-based SAML2 identity providers, service providers, or WS-Security endpoints is exposed to full system compromise by an unauthenticated attacker, requiring immediate remediation to protect sensitive authentication infrastructure.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Low
Perl XML signature library, used mainly in niche Perl SAML2 deployments
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy