Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted signed XML to verifier
-
DeliveryPoint Algorithm attribute after '#' at CORE builtin
-
Exploitverify() resolves name via Digest::SHA->can()
-
ExecutionBuiltin invoked on canonical element content
-
ImpactCommand 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-133603
GHSA-g668-j8fg-m9x6
NVD
CVE.org
EPSS
VulDB
Exploit-DB