PyPI
CVE-2026-115878
Stanza: RCE via pickle deserialization in the lemmatizer
- Severity
- High 7.8
- Published
- 3 Nov 2026
- Last changed
- 3 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.15.0
- Exploit chance
- 0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-gh9r-c94j-cmp5
- Sources
- OSV.dev and GitHub
Description
Loading an attacker-supplied lemma .pt runs arbitrary code as the loading user. Since 1.14.0 the lemmatizer stores pos_dict as a gzip-compressed pickle in the checkpoint's dicts field (a bytes value). torch.load(weights_only=True) treats bytes as a primitive and passes it through unexamined, so its allowlist never sees the inner stream. Trainer.load then feeds those bytes to an unrestricted pickle.loads: the only bare pickle.loads in the tree. Result: weights_only=True gives no protection here, and model loading executes code.
Confirmed end-to-end against stanza 1.14.0 / PyTorch 2.13.0 / CPython 3.13.7: a crafted checkpoint whose payload reduce returns (os.system, (cmd,)) ran the command at load time (marker file showed uid=501(...), executed_by=...).
A downstream user is vulnerable whenever they build a pipeline that loads a caller-supplied lemmatizer checkpoint. i.e.
Affected software
| Software | Affected versions |
|---|---|
stanzaPyPI · osv:PyPI:stanza |
|
About stanza
This is the only vulnerability in stanza in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115878
- GitHub Advisory Database https://github.com/advisories/GHSA-gh9r-c94j-cmp5