PyTorch-Nightly PyPI Package Compromised with Malicious Dependency
Attack on AI3 Confirmed exploitationSupply chain
Threat actors uploaded a malicious dependency matching the name of a PyTorch-nightly package to PyPI, performing a supply chain attack. The compromised packages exposed sensitive data on infected Linux machines before PyTorch announced the incident.
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Supply chainMalicious or backdoored models, poisoned packages, unsafe deserialization and other compromised AI dependencies.
- Supply chain
- owasp llm top 10
- mitre atlas
- Both rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 3 · Confirmed exploitationUsed against real targets; limited or unclear impact.
- targets
- Framework / tooling
- products
- PyTorch-nightly
- incident date
- 25 Dec 2022
- first reported
- 31 Mar 2023
- origin
- AVID
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- supply_chain · dependency_confusion · pypi
- record
- created 2026-10-18 06:56Z · updated 2026-10-18 06:56Z · json
Sources · 4
- 2023-03-31AVID-2023-V015: Linux packages for PyTorch's pre-release version, called Pytorch-nightly, were compromised from December 25 to 30, 2022 by a malicious binary uploaded to the Python Package Index (PyPI) code repository.AVID · github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V015.json
- 2023-03-31Compromised PyTorch Dependency ChainMITRE ATLAS · atlas.mitre.org/studies/AML.CS0015
- 2023-03-31PyTorch statement on compromised dependencypytorch.org · pytorch.org/blog/compromised-nightly-dependency
- 2023-03-31Analysis by BleepingComputerBleepingComputer · bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2022-02-03PyTorch-nightly Compromised via Dependency Confusion on PyPI3 Exploitedon AISupply chain3 src
- 2024-10-10CVE-2024-47867: Gradio lacks FRP client integrity checking2 Disclosedon AIInfra vulnSupply chain2 src
- 2024-09-17CVE-2024-5998: LangChain pickle deserialization of untrusted data2 Disclosedon AIInfra vulnSupply chain2 src
- 2024-07-02CVE-2024-4897: RCE vulnerability in lollms-webui via insecure dependency2 Disclosedon AIInfra vulnSupply chain1 src
- 2024-05-13CVE-2024-34359: Llama-cpp-python remote code execution via Jinja2 chat templates2 Disclosedon AIInfra vulnSupply chain2 src
- 2024-04-10Hugging Face Transformers Deserialization Remote Code Execution2 Disclosedon AIInfra vulnSupply chain1 src