Stanza
Stanza: Remote Code Execution via Unsafe Pickle Deserialization in Model Loaders
Stanza is a Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages. Prior to 1.12.2, Stanza model loaders such as stanza.models.common.pretrain.Pretrain.load() attempt torch.load(..., weights_only=True) but fall back to torch.load(..., weights_only=False) on attacker-controllable pickle.UnpicklingError, allowing a malicious .pt pretrain or model file to execute arbitrary pickle code when a Stanza NLP pipeline loads it. This issue is fixed in version 1.12.2.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-502
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
stanfordnlp stanza
- < 1.12.2
Fixed in 1.12.2
Mitigation
Upgrade stanza to 1.12.2 or later.
References
- Vendor advisory github.com/stanfordnlp/stanza/security/advisor…
- Patch github.com/stanfordnlp/stanza/pull/1587
- Patch github.com/stanfordnlp/stanza/commit/b745008c6…
1 more
- Release notes github.com/stanfordnlp/stanza/releases/tag/v1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.