<Vulnerability name="CVE-2026-54499">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-07-08T22:23:02</PublicDate>
    <Bugzilla id="2498355" url="https://bugzilla.redhat.com/show_bug.cgi?id=2498355" xml:lang="en:us">
stanza: Stanza: Remote Code Execution via unsafe deserialization in model loaders
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-502</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Stanza, a Stanford NLP Python library. Stanza model loaders, such as stanza.models.common.pretrain.Pretrain.load(), attempt to safely load PyTorch checkpoint files. However, if this safe load fails due to an attacker-controllable pickle.UnpicklingError, the loaders fall back to an unsafe deserialization method. This allows a remote attacker to craft a malicious pretrain or model file that, when loaded by a Stanza NLP pipeline, can execute arbitrary code with the privileges of the affected process, leading to potential credential theft or data exfiltration.
    </Details>
    <Statement xml:lang="en:us">
An unsafe deserialization vulnerability in the Stanza Python library can lead to remote code execution. A malicious model pretrain file from an untrusted or compromised source can trigger an insecure deserialization fallback during model loading, resulting in arbitrary code execution with the privileges of the affected process.
    </Statement>
    <Mitigation xml:lang="en:us">
To mitigate this vulnerability, ensure that Stanza model pretrain files are exclusively sourced from trusted repositories and locations. Avoid loading model files from untrusted or unverified sources, as this could lead to the execution of arbitrary code. Implement strict access controls on directories where Stanza models are stored to prevent the introduction of malicious files.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:ceph_storage:9">
        <ProductName>Red Hat Ceph Storage 9</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>rhceph/alloy-rhel10</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>opentelemetry-collector</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>opentelemetry-collector</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>opentelemetry-collector-contrib</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_distributed_tracing:3">
        <ProductName>Red Hat OpenShift distributed tracing 3</ProductName>
        <FixState>Will not fix</FixState>
        <PackageName>rhosdt/opentelemetry-collector-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-54499
https://nvd.nist.gov/vuln/detail/CVE-2026-54499
https://github.com/stanfordnlp/stanza/commit/b745008c68c9e50ccb5acd537cb6f2453f8b7ad4
https://github.com/stanfordnlp/stanza/pull/1587
https://github.com/stanfordnlp/stanza/releases/tag/v1.12.2
https://github.com/stanfordnlp/stanza/security/advisories/GHSA-v5jw-96jm-7h2c
    </References>
</Vulnerability>