nday
CVE-2024-5452 GHSA-cgwc-qvrx-rf7f

RCE via Property/Class Pollution in lightning-ai/pytorch-lightning

lightning-ai / lightning-ai/pytorch-lightning

披露后第 893 天有补丁记录。已有补丁记录,修复版本是 lightning 2.3.3、pytorch-lightning 2.3.3。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 攻击途径远程未授权网络无需认证无需用户交互 软件包生态PyPI
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

远程未授权
编号分配方 @huntr_ai 给出的 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.0)中的 AV:N、PR:N、UI:N
网络
编号分配方 @huntr_ai 给出的 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.0)中的 AV:N
无需认证
编号分配方 @huntr_ai 给出的 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.0)中的 PR:N
无需用户交互
编号分配方 @huntr_ai 给出的 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.0)中的 UI:N
PyPI
GHSA-cgwc-qvrx-rf7f:pip 包 lightning、pytorch-lightning
当前阶段
PAT
披露
披露到补丁
T+893d
CVSS
9.8 CRITICAL v3.0

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
2024-06-06T17:54Z
PAT补丁
2026-11-16T16:00Z
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

A remote code execution (RCE) vulnerability exists in the lightning-ai/pytorch-lightning library version 2.2.1 due to improper handling of deserialized user input and mismanagement of dunder attributes by the deepdiff library. The library uses deepdiff.Delta objects to modify application state based on frontend actions. However, it is possible to bypass the intended restrictions on modifying dunder attributes, allowing an attacker to construct a serialized delta that passes the deserializer whitelist and contains dunder attributes. When processed, this can be exploited to access other modules, classes, and instances, leading to arbitrary attribute write and total RCE on any self-hosted pytorch-lightning application in its default configuration, as the delta endpoint is enabled by default.

以上是 CVE 记录(cvelist)中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:N
无:不需要账号或授权
用户交互 UI:N
无:除攻击者外不需要任何人配合

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

CVSS 3.0 向量,来自 CVE 记录,由 CNA @huntr_ai 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 @huntr_ai。CVSS 9.8,严重。CISA 的 SSVC 评估中利用状态为 poc。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 315516,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-5452",
  "occurred_at": "2024-06-06T17:54:57.559Z",
  "observed_at": "2026-11-13T05:38:18.986669Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "version": "3.0",
      "base_score": 9.8,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2024-08-09T19:54:34.271410Z",
      "automatable": "yes",
      "exploitation": "poc",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2024-06-06T17:54:57.559Z",
    "assigner_short_name": "@huntr_ai"
  }
}
来源未给时间,本站实时观测
+PAT补丁发布

公告给出修复版本 lightning 2.3.3、pytorch-lightning 2.3.3。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa GHSA-cgwc-qvrx-rf7f · 本站 实时观测 · 原始记录
{
  "id": 472962,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-cgwc-qvrx-rf7f",
  "occurred_at": null,
  "observed_at": "2026-11-16T16:00:12.562502Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-cgwc-qvrx-rf7f",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 9.8,
        "vector_string": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Control of Dynamically-Managed Code Resources",
        "cwe_id": "CWE-913"
      },
      {
        "name": "Improperly Controlled Modification of Dynamically-Determined Object Attributes",
        "cwe_id": "CWE-915"
      }
    ],
    "ghsa_id": "GHSA-cgwc-qvrx-rf7f",
    "packages": [
      {
        "name": "lightning",
        "ecosystem": "pip",
        "first_patched_version": "2.3.3",
        "vulnerable_version_range": "< 2.3.3"
      },
      {
        "name": "pytorch-lightning",
        "ecosystem": "pip",
        "first_patched_version": "2.3.3",
        "vulnerable_version_range": "< 2.3.3"
      }
    ],
    "severity": "critical",
    "references": [
      "https://nvd.nist.gov/vuln/detail/CVE-2024-5452",
      "https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da",
      "https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a",
      "https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3",
      "https://github.com/Lightning-AI/pytorch-lightning/issues/20038",
      "https://github.com/advisories/GHSA-cgwc-qvrx-rf7f",
      "https://github.com/lightning-ai/pytorch-lightning",
      "https://github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-385.yaml",
      "https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-3974.yaml",
      "https://pypi.org/project/lightning"
    ],
    "fix_commit_urls": [
      "https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a"
    ],
    "github_reviewed_at": "2024-06-06T22:10:56Z",
    "advisory_updated_at": "2026-11-16T15:15:31Z",
    "source_code_location": "https://github.com/lightning-ai/pytorch-lightning",
    "advisory_published_at": "2024-06-06T18:30:58Z"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。