CVE-2022-0845CWE-94

Code Injection in pytorchlightning/pytorch-lightning

High · published March 5, 2022

CVSS v3.0
7.3
EPSS
1%
Percentile
62.4
In the wild
Unconfirmed
What it is

⚡ A crafty code injection lurks in PyTorch Lightning versions prior to 1.6.0! An attacker could take advantage of this flaw with just the right input. 🔥 Think of it like a recipe where a sneaky chef can add any ingredient they want without the head chef noticing — what goes in could absolutely ruin the dish! If exploited, this vulnerability could allow an attacker to inject arbitrary code, potentially leading to unauthorized access or complete control of your application. Imagine a chef suddenly turning your kitchen into a disaster zone, tossing in whatever they please!

Put simply

Think of it like a recipe where a sneaky chef can add any ingredient they want without the head chef noticing — what goes in could absolutely ruin the dish! This code injection vulnerability arises from improper handling of inputs in the PyTorch Lightning framework, allowing malicious users to execute harmful commands within the application context.

What to do

If exploited, this vulnerability could allow an attacker to inject arbitrary code, potentially leading to unauthorized access or complete control of your application. Imagine a chef suddenly turning your kitchen into a disaster zone, tossing in whatever they please! To protect your projects, immediately upgrade to PyTorch Lightning version 1.6.0 or higher. Additionally, ensure you audit your code for proper input validation and sanitization practices. Don't leave any cracks for the sneaky chefs! You've got this! Follow these action items and keep your application protected! 🛡️

The record
Technical detail
CVSS v3.0
7.3 · HIGH
Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00999 · 62.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2022-03-05T21:25Z
EPSS history
Timeline
  • 05 MAR 21:25Z
    Code Injection in pytorchlightning/pytorch-lightning
    cvelistv5