Skip to content
HighVulnerability

GHSA-gh9r-c94j-cmp5: Stanza: RCE via pickle deserialization in the lemmatizer

Published
Record updated
View JSON
Affected
  • stanza = 1.14.0
Fixed in
1.15.0
  • released October 1, 2026, 33 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Loading an attacker-supplied lemmatizer checkpoint in Stanza executes arbitrary code as the loading user. Since 1.14.0, `pos_dict` is stored as a gzip-compressed pickle inside the `dicts` field, which `torch.load(weights_only=True)` passes through unchecked. `Trainer.load` then calls `_unpack_pos_dict`, which uses an unrestricted `pickle.loads`, so `stanza.Pipeline(..., lemma_model_path=...)` runs the embedded payload at construction time. The advisory confirmed execution against stanza 1.14.0 with PyTorch 2.13.0 and CPython 3.13.7.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.