Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. stanza
  4. ›
  5. CVE-2026-54499

CVE-2026-54499: Stanza: Remote Code Execution via Unsafe Pickle Deserialization in Model Loaders

June 19, 2026

Stanza 1.12.0 attempts to safely load PyTorch checkpoint files using torch.load(..., weights_only=True), but automatically falls back to the fully unsafe torch.load(..., weights_only=False) when the safe load raises pickle.UnpicklingError. Because the UnpicklingError condition is fully attacker-controllable, any .pt file that contains a single unsupported pickle global will trigger it.

An attacker who can place a malicious pretrain or model file on disk (via supply-chain compromise, a poisoned model repository, or a shared model cache) can achieve arbitrary code execution on any machine that loads a Stanza NLP pipeline.

Code execution occurs inside the Stanza pretrain-loading API, not merely by calling torch.load directly.

References

  • github.com/advisories/GHSA-v5jw-96jm-7h2c
  • github.com/stanfordnlp/stanza/security/advisories/GHSA-v5jw-96jm-7h2c
  • nvd.nist.gov/vuln/detail/CVE-2026-54499

Code Behaviors & Features

Detect and mitigate CVE-2026-54499 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.12.2

Fixed versions

  • 1.12.2

Solution

Upgrade to version 1.12.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data
  • CWE-676: Use of Potentially Dangerous Function

Source file

pypi/stanza/CVE-2026-54499.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:21 +0000.