CVE-2024-5452CWE-915

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

Critical · published June 6, 2024

CVSS v3.0
9.8
EPSS
27%
Percentile
98.0
In the wild
Unconfirmed
What it is

🔥 A sneaky flaw in the lightning-ai/pytorch-lightning library could grant an attacker full control of your application! 🔥 Think of it like a restaurant where customers can tweak not just their orders but the entire menu—if someone figures out how to sneak in a 'secret ingredient,' they might change the whole dining experience without anyone noticing! This vulnerability allows an attacker to modify any part of your application, leading to potentially catastrophic outcomes. They could execute arbitrary code, wreak havoc on your data, and compromise your entire system. With the delta endpoint enabled by default, your self-hosted pytorch-lightning app might just be a playground for cyber mischief if left unpatched!

Put simply

Think of it like a restaurant where customers can tweak not just their orders but the entire menu—if someone figures out how to sneak in a 'secret ingredient,' they might change the whole dining experience without anyone noticing! Due to improper handling of deserialized user input and the mismanagement of dunder attributes in the deepdiff library, attackers can craft malicious serialized inputs that bypass the deserializer's whitelist, leading to remote code execution on affected applications.

What to do

This vulnerability allows an attacker to modify any part of your application, leading to potentially catastrophic outcomes. They could execute arbitrary code, wreak havoc on your data, and compromise your entire system. With the delta endpoint enabled by default, your self-hosted pytorch-lightning app might just be a playground for cyber mischief if left unpatched! Update to the latest version of pytorch-lightning to address this vulnerability—version 2.3.0 or higher is recommended. Additionally, review your application’s configuration and consider disabling the delta endpoint if it is not strictly necessary. Stay vigilant by regularly auditing third-party libraries! You can tackle this! Follow these steps and lock down your application to keep those cyber villains at bay. 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.26831 · 98.0th percentile
Weakness
CWE-915 · Improperly Controlled Modification of Dynamically-Determined Object Attributes
Published
2024-06-06T17:54Z
EPSS history
Timeline
  • 06 JUN 17:54Z
    RCE via Property/Class Pollution in lightning-ai/pytorch-lightning
    cvelistv5