<Vulnerability name="CVE-2026-142196">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-12-02T16:50:53</PublicDate>
    <Bugzilla id="2588961" url="https://bugzilla.redhat.com/show_bug.cgi?id=2588961" xml:lang="en:us">
pytorch-lightning: PyTorch Lightning: Arbitrary code execution via insecure checkpoint deserialization
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.8</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:L/AC:L/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">
PyTorch Lightning through 2.6.6 contains an insecure deserialization vulnerability in FSDPStrategy.load_checkpoint that ignores weights_only=True when loading local single-file checkpoints. Attackers who supply a crafted checkpoint can embed a pickle payload that _LazyLoadingUnpickler resolves through unrestricted find_class, executing code as the training user.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in PyTorch Lightning. An attacker could execute arbitrary code by convincing a user to load a specially crafted model checkpoint file. This issue occurs during checkpoint loading, where the application fails to enforce safety restrictions on deserialization (the process of converting stored data back into active program objects). As a result, malicious payloads embedded within the file are executed under the privileges of the training user.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as Important because processing an untrusted model checkpoint can lead to code execution within the security context of the running application, bypassing intended safe deserialization protections. Red Hat AI environments that load external PyTorch Lightning model files are vulnerable when handling untrusted single-file checkpoints. Exploitation relies on user interaction to ingest malicious checkpoint data, which restricts remote unauthenticated attacks.
    </Statement>
    <Mitigation xml:lang="en:us">
To mitigate this vulnerability, avoid ingesting model checkpoints from untrusted or unknown sources. If processing external checkpoint files is required, run the PyTorch Lightning workload within an isolated container or sandboxed environment with restricted filesystem and network privileges.

Caveats:
Isolating execution environments may require operational adjustments and limits access to local host resources.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:ai_inference_server:3">
        <ProductName>Red Hat AI Inference Server</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhaii/vllm-cpu-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:ai_inference_server:3">
        <ProductName>Red Hat AI Inference Server</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhaii/vllm-cuda-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux_ai:3">
        <ProductName>Red Hat Enterprise Linux AI (RHEL AI) 3</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhelai3/bootc-aws-cuda-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux_ai:3">
        <ProductName>Red Hat Enterprise Linux AI (RHEL AI) 3</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhelai3/bootc-azure-cuda-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux_ai:3">
        <ProductName>Red Hat Enterprise Linux AI (RHEL AI) 3</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhelai3/bootc-cuda-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux_ai:3">
        <ProductName>Red Hat Enterprise Linux AI (RHEL AI) 3</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhelai3/bootc-gcp-cuda-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_ai">
        <ProductName>Red Hat OpenShift AI (RHOAI)</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhoai/odh-automl-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_ai">
        <ProductName>Red Hat OpenShift AI (RHOAI)</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhoai/odh-kserve-autogluon-server-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_ai">
        <ProductName>Red Hat OpenShift AI (RHOAI)</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rhoai/odh-kserve-storage-initializer-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-142196
https://nvd.nist.gov/vuln/detail/CVE-2026-142196
https://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/strategies/fsdp.py#L601-L602
https://github.com/Lightning-AI/pytorch-lightning/blob/2.6.6/src/lightning/fabric/utilities/load.py#L179-L213
https://www.vulncheck.com/advisories/pytorch-lightning-through-2.6.6-insecure-deserialization-via-fsdp-checkpoint-loading
    </References>
</Vulnerability>