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

> Attackers submitting signed XML documents can run commands as the verifying process via Algorithm attributes; Perl apps verifying untrusted XML with XML::Sig should care.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`Digest::SHA->can`)
- **Fix available:** Yes
- **Published:** 24 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-g668-j8fg-m9x6

## What is CVE-2026-134880?

CVE-2026-134880 is a critical code injection vulnerability, published on 24 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-470 (Use of Externally-Controlled Input to Select Classes or Code)

## Which versions are affected by CVE-2026-134880?

An affected version is only exploitable if your software calls Digest::SHA->can. Many projects that include it are not exposed.


## How do I fix CVE-2026-134880?

Upgrade the affected software to 0.74 or later. The advisory says that version fixes it.

## Is CVE-2026-134880 being exploited?

There is no known exploitation of CVE-2026-134880 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134880 and fix it if it is affected.

What it is: CVE-2026-134880 is a critical code injection vulnerability, published on 24 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-134880 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls Digest::SHA->can. Many projects that include it are not exposed.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to Digest::SHA->can and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134880/ (Markdown: https://insights.sbomify.com/CVE-2026-134880/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134880
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134880
- OSV: https://osv.dev/vulnerability/CVE-2026-134880

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134880/
Summaries are generated and may contain mistakes; the official description above is the record.
