CVE-2026-54499: CWE-502: Deserialization of Untrusted Data in stanfordnlp stanza
A deserialization vulnerability exists in the Stanford NLP Python library Stanza prior to version 1.12.2. The issue arises when model loaders fall back to untrusted pickle deserialization, allowing execution of arbitrary code via malicious .pt model files. This vulnerability is fixed in version 1.12.2.
AI Analysis
Technical Summary
CVE-2026-54499 describes a deserialization of untrusted data vulnerability (CWE-502) in the Stanford NLP library Stanza. Specifically, before version 1.12.2, Stanza's model loaders such as stanza.models.common.pretrain.Pretrain.load() attempt to load model files using torch.load with weights_only=True, but if a pickle.UnpicklingError occurs, they fall back to torch.load with weights_only=False. This fallback allows an attacker to craft a malicious .pt pretrain or model file that executes arbitrary pickle code during loading, leading to remote code execution. The issue is resolved in Stanza version 1.12.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the system loading a malicious Stanza model file. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS score of 7.5 reflects high impact with network attack vector, high confidentiality, integrity, and availability impact, but requiring user interaction and high attack complexity.
Mitigation Recommendations
A fix is available in Stanza version 1.12.2. Users should upgrade to version 1.12.2 or later to remediate this vulnerability. No other official remediation or temporary fix is documented. Until upgraded, avoid loading untrusted or attacker-controlled .pt model files with Stanza.
CVE-2026-54499: CWE-502: Deserialization of Untrusted Data in stanfordnlp stanza
Description
A deserialization vulnerability exists in the Stanford NLP Python library Stanza prior to version 1.12.2. The issue arises when model loaders fall back to untrusted pickle deserialization, allowing execution of arbitrary code via malicious .pt model files. This vulnerability is fixed in version 1.12.2.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54499 describes a deserialization of untrusted data vulnerability (CWE-502) in the Stanford NLP library Stanza. Specifically, before version 1.12.2, Stanza's model loaders such as stanza.models.common.pretrain.Pretrain.load() attempt to load model files using torch.load with weights_only=True, but if a pickle.UnpicklingError occurs, they fall back to torch.load with weights_only=False. This fallback allows an attacker to craft a malicious .pt pretrain or model file that executes arbitrary pickle code during loading, leading to remote code execution. The issue is resolved in Stanza version 1.12.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the system loading a malicious Stanza model file. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS score of 7.5 reflects high impact with network attack vector, high confidentiality, integrity, and availability impact, but requiring user interaction and high attack complexity.
Mitigation Recommendations
A fix is available in Stanza version 1.12.2. Users should upgrade to version 1.12.2 or later to remediate this vulnerability. No other official remediation or temporary fix is documented. Until upgraded, avoid loading untrusted or attacker-controlled .pt model files with Stanza.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T18:01:15.511Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4f575268715ace43edbe14
Added to database: 07/09/2026, 08:09:54 UTC
Last enriched: 07/09/2026, 08:10:33 UTC
Last updated: 07/09/2026, 08:54:11 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.