kcve.ai취약점 정보 · 내 자산 확인

CVE-2024-5452 RCE via Property/Class Pollution in lightning-ai/pytorch-lightning

번개-AI / 피토치 번개의 속성 / 클래스 오염을 통해 RCE

설명

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.

원격 코드 실행(RCE) 취약점은 lightning-ai/pytorch-lightning 라이브러리 버전 2.2.1에 존재하는데, 이는 `deepdiff` 라이브러리에 의한 비직렬화된 사용자 입력의 부적절한 처리와 dunder 속성의 잘못된 관리로 인한 것입니다. 라이브러리는 `deepdiff.Delta` 객체를 사용하여 프론트엔드 액션을 기반으로 애플리케이션 상태를 수정합니다. 그러나 dunder 속성을 수정하는 데 필요한 제한 사항을 우회하여 공격자가 deserializer 화이트리스트를 통과하고 dunder 특성을 포함하는 직렬화된 델타를 구성할 수 있습니다. 처리될 때, 이것은 다른 모듈, 클래스, 그리고 인스턴스에 접근하는데 이용될 수 있고, 델타 엔드포인트가 기본적으로 활성화되기 때문에, 임의의 속성 쓰기와 모든 자체 호스트된 pytorch-lightning 어플리케이션에 대한 총 RCE로 이어질 수 있다.

영향 받는 제품 제품 1개

  • lightning-ai

    lightning-ai/pytorch-lightning

    해결 버전 있음

    영향 받는 버전

    • 2.3.3 미만

    해결 버전

    • 2.3.3 이상

참고 자료 2건

‹ 목록

점검 지원 범위 문의

도입 문의