Code Injection in PyTorch Lightning
CVE-2022-0845 · GHSA-r5qj-cvf9-p85h · published 2022-03-06 · updated 2024-10-25
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.0%
- Fixed in
- 1.6.0
PyTorch Lightning version 1.5.10 and prior is vulnerable to code injection. An attacker could execute commands on the target OS running the operating system by setting the PLTRAINERGPUS when using the Trainer module. A patch is included in the 1.6.0 release.
Upgrade pytorch-lightning to 1.6.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| pytorch-lightning | PyPI | < 1.6.0 | 1.6.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalCompromise of PyTorch Lightning PyPi Package Versionspytorch-lightning, pytorch-lightning
- CriticalPyTorch Lightning path traversal vulnerabilitylightning, pytorch-lightning
- Criticalpytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpointlightning, pytorch-lightning
- CriticalRemote code execution in pytorch lightninglightning, pytorch-lightning
- HighPyTorch Lightning load_from_checkpoint has an insecure checkpoint deserializationpytorch-lightning
- HighPyTorch Lightning denial of service vulnerabilitypytorch-lightning
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.