Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-4118

pytorch-lightning is vulnerable to Deserialization of Untrusted Data

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-4118
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:47 UTC · Revision 1

Source evidence

CVE-2021-4118

core-osv · Original source

Published 23 Dec 2021, 18:15 UTC

pytorch-lightning is vulnerable to Deserialization of Untrusted Data

osv:CVE-2021-4118
Complete source record
{
  "id": "2f61f6c6c9ffad0444925b0743169133ab3a7b8bba0f4fd4d986717b7eb2c09d",
  "url": "https://osv.dev/vulnerability/CVE-2021-4118",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-4118",
    "summary": "pytorch-lightning is vulnerable to Deserialization of Untrusted Data",
    "evidence": "osv:CVE-2021-4118",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-4118",
      "aliases": [
        "CVE-2021-4118",
        "GHSA-2vj5-px25-gjrp",
        "PYSEC-2021-874",
        "PYSEC-2026-3968"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lightning-ai/pytorch-lightning",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "44e3edbf7a3fffd3069e2bc24c6ee143de79944b"
                },
                {
                  "fixed": "62f1e82e032eb16565e676d39e0db0cac7e34ace"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.6.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "62f1e82e032eb16565e676d39e0db0cac7e34ace"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.5.0",
            "1.5.0rc1",
            "1.5.0rc0",
            "1.4.0",
            "1.4.0rc2",
            "1.4.0rc1",
            "1.4.0rc0",
            "1.3.0",
            "1.3.0rc3",
            "1.3.0rc2",
            "1.3.0rc1",
            "1.3.0rc0",
            "1.2.0",
            "1.2.0rc2",
            "1.2.0rc1",
            "1.1.0",
            "1.1.0rc2",
            "1.1.0rc1",
            "1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.10.0",
            "0.9.0",
            "0.8.5",
            "0.8.4",
            "0.8.3",
            "0.8.2",
            "0.8.1",
            "0.8.0",
            "0.7.6",
            "0.7.5",
            "0.7.4",
            "0.7.3",
            "0.7.2",
            "0.7.1",
            "0.7.0",
            "0.6.0",
            "0.5.2.1",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.4.9",
            "0.4.7",
            "0.4.6",
            "0.4.5",
            "0.4.4",
            "0.4.3",
            "0.4.2",
            "0.4.1",
            "0.4.0",
            "0.2.1",
            "0.2",
            "0.1.2",
            "0.1.1",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4118.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:09.110905879Z",
      "provider": "osv",
      "references": [
        "https://github.com/pytorchlightning/pytorch-lightning/commit/62f1e82e032eb16565e676d39e0db0cac7e34ace",
        "https://huntr.dev/bounties/31832f0c-e5bb-4552-a12c-542f81f111e6"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-4118",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 442019,
  "published_at": "2021-12-23T18:15:07.407+00:00"
}