PYSEC-2026-3967

    Dashboard / Vulnerabilities / PYSEC-2026-3967

    PYSEC-2026-3967

    Published: 15 Jul 2026Last Modified: 10 Sept 2026

    Summary:

    Details: PyTorch Lightning through 2.6.5, fixed in commit d710d68, contains a remote code execution vulnerability in the _load_state function that imports and executes attacker-controlled module names from checkpoint _instantiator hyperparameters. Attackers can craft malicious checkpoint files that bypass weights_only=True protections to execute arbitrary code when LightningModule.load_from_checkpoint is called.

    Affected packages

    Package

    Name: pytorch-lightning

    Purl: pkg:pypi/pytorch-lightning

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2.6.6

    Affected versions

    0.0.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    PYSEC-2026-3967 | CVE-DB