XML::Sig for Perl allows code execution via Algorithm attribute
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
XML::Sig versions before 0.74 for Perl allow code execution through the Algorithm attribute of a signed document. Verify takes the text after the last # in the DigestMethod and SignatureMethod Algorithm attributes and looks it up with Digest::SHA->can, which returns a code reference for any fully qualified function name, including Perl builtins in the CORE namespace. The digest function is then called on the canonical form of the referenced element, so the document chooses both the function and its argument, and an attacker who can submit a signed document can run a command as the verifying process. The CVSS 3.1 base score is 9.8 (CRITICAL), and the weakness is CWE-470.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | XML-Sig | before 0.74 | 0.74 | Patch available | CNA |
- XML-Sig Vendor— Affected before 0.74 Fixed in 0.74 Patch available CNA
Remediation
Upgrade XML::Sig to version 0.74 or later, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA XML-Sig Fixed in 0.74
Timeline
- 2026-11-24 Threatist record created from CVE-2026-134880
- 2026-11-24 Alias added: GHSA-g668-j8fg-m9x6
- 2026-11-25 CVSS score added · CISA ADP
- 2026-11-25 CISA SSVC decision points changed
- 2026-11-26 EPSS moved to the 50th–90th percentile
References
Sources
- CVE-2026-134880 · CVE Program
- CVE-2026-134880 · NVD
- FIRST EPSS
- GHSA-g668-j8fg-m9x6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences