LearnCTEM.com, Best CTEM Learning Platform
CVE Intelligence Hub

CVE-2026-31221: Lightningai Pytorch Lightning Deserialization of Untrusted Data (CVSS 7.8)

CVE-2026-31221 is a high severity deserialization of untrusted data in Lightningai Pytorch Lightning with a CVSS score of 7.8. Apply the vendor fix and confirm exposure on internet facing and business critical assets first.

Last updated: Jun 17, 2026

Quick answer

Direct answer

CVE-2026-31221 is a high severity deserialization of untrusted data in Lightningai Pytorch Lightning with a CVSS score of 7.8. Apply the vendor fix and confirm exposure on internet facing and business critical assets first.

Risk scores

CVSS base score
7.8HIGH
EPSS probability
0.55%
Higher than 45 percent of all CVEs
CISA KEV
Not listed
CVSS metricWhat it means
Attack vector (AV:L)Local access needed
Attack complexity (AC:L)Low complexity
Privileges required (PR:N)No privileges required
User interaction (UI:R)A user must take an action
Scope (S:U)Scope unchanged
Confidentiality (C:H)High confidentiality impact
Integrity (I:H)High integrity impact
Availability (A:H)High availability impact

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

About Lightningai Pytorch Lightning

CVE-2026-31221 affects Lightningai Pytorch Lightning, a product from Lightningai. Before acting, confirm where Lightningai Pytorch Lightning runs in your estate, who owns it and whether it is reachable from the internet, because exposure decides real risk more than the score alone.

What the flaw is

In plain terms: PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the checkpoint loading mechanism. The LightningModule.load_from_checkpoint() method, which is commonly used to load saved model states, internally calls torch.load() without setting the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution on the victim's system when the file is loaded.

The weakness class is Deserialization of Untrusted Data. The application rebuilds objects from attacker controlled data, which can run code.

Based on its CVSS vector, the flaw needs local or adjacent access, needs no login, and relies on a user taking an action. Apply the vendor fix and confirm exposure on internet facing and business critical assets first.

Affected versions and timeline

FieldDetail
ProductLightningai Pytorch Lightning
Affected versionsPytorch Lightning up to and including 2.6.0
PublishedMay 12, 2026
Last modifiedJun 17, 2026
Added to CISA KEVNot listed
Assigning CNAcve@mitre.org

How to detect it

  • Inventory every instance of Lightningai Pytorch Lightning and record the running version against the affected range above.
  • Check external attack surface scans for internet facing instances of the component.
  • Review logs on affected systems for unusual requests, errors or new processes around the vulnerable function.
  • Confirm with an authenticated vulnerability scan once your scanner has a check for this CVE.

How to fix it

  • Apply the fixed version of Lightningai Pytorch Lightning named in the vendor advisory.
  • If patching must wait, restrict network access to the affected service and put it behind authentication or a web application firewall rule.
  • Rescan after the change to prove the exposure is gone, then close the ticket.

CTEM action plan

CTEM stageWhat to do for this CVE
ScopeAdd every business service that depends on Lightningai Pytorch Lightning to the current CTEM cycle.
DiscoverFind all instances, including shadow and cloud deployments, and record versions and exposure.
PrioritizeRank using EPSS and CVSS together with asset exposure and business impact.
ValidateConfirm the flaw is reachable and exploitable in your environment and that compensating controls work.
MobilizeAssign the fix to the asset owner with a due date matched to the priority, then verify closure.

CWE References

Technical References

Frequently asked questions

CVE-2026-31221 is a high severity deserialization of untrusted data in Lightningai Pytorch Lightning with a CVSS score of 7.8. Apply the vendor fix and confirm exposure on internet facing and business critical assets first.

Related CVEs

CRITICAL9.3
CVE-2026-44484
Lightningai Pytorch Lightning

PyTorch Lightning is a deep learning framework to pretrain and finetune AI models. Versions 2.6.2 and 2.6.2 have introduced functionality consistent with a credential harvesting mechanism.

May 14, 2026
CRITICAL10.0
CVE-2026-65883
Aimy-Extensions Aimy Captcha-Less Form Guard

Joomla Extension - aimy-extensions.com - RCE via PHP object injection in Aimy Captcha-Less Form Guard 18.0 - 20.0 - A forged clfgd field allows PHP objection injection and thereby remote code execution.

Jul 29, 2026
CRITICAL10.0
CVE-2026-41104
Microsoft Planetary Computer

Deserialization of untrusted data in Microsoft Planetary Computer Pro allows an unauthorized attacker to disclose information over a network.

May 22, 2026
CRITICAL10.0
CVE-2026-26222
Beyond Altec Doclink

Altec DocLink (now maintained by Beyond Limits Inc.) version 4.0.336.0 exposes insecure .NET Remoting endpoints over TCP and HTTP/SOAP via Altec.RDCHostService.exe using the ObjectURI "doclinkServer.soap". The service does not require authentication and is vulnerable to unsafe object unmarshalling, allowing remote attackers to read arbitrary files from the underlying system by specifying local file paths. Additionally, attackers can coerce SMB authentication via UNC paths and write arbitrary files to server locations. Because writable paths may be web-accessible under IIS, this can result in unauthenticated remote code execution or denial of service through file overwrite.

Feb 24, 2026
CRITICAL10.0
CVE-2026-26333
Calero Verasmart

Calero VeraSMART versions prior to 2022 R1 expose an unauthenticated .NET Remoting HTTP service on TCP port 8001. The service publishes default ObjectURIs (including EndeavorServer.rem and RemoteFileReceiver.rem) and permits the use of SOAP and binary formatters with TypeFilterLevel set to Full. An unauthenticated remote attacker can invoke the exposed remoting endpoints to perform arbitrary file read and write operations via the WebClient class. This allows retrieval of sensitive files such as WebRoot\\web.config, which may disclose IIS machineKey validation and decryption keys. An attacker can use these keys to generate a malicious ASP.NET ViewState payload and achieve remote code execution within the IIS application context. Additionally, supplying a UNC path can trigger outbound SMB authentication from the service account, potentially exposing NTLMv2 hashes for relay or offline cracking.

Feb 13, 2026
CRITICAL10.0
CVE-2026-33819
Microsoft Bing

Deserialization of untrusted data in Microsoft Bing allows an unauthorized attacker to execute code over a network.

Apr 23, 2026
All Lightningai CVEs in 2026
Your next credential

Earn your free CTEM certification.

Learn to scope, prioritize, validate and mobilize fixes for CVEs like CVE-2026-31221 with a free CTEM certification.

Free to takePublicly verifiable

Beginner / Practitioner / Program Leader

Explore certifications