PyTorch-Nightly PyPI Package Compromised with Malicious Dependency
PyTorch-nightly
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.
- fix status
- Fix status unknown
- first report
- 31 Mar 2023
- last update
- 31 Mar 2023
Timeline · 4
- 31 Mar 2023AVID-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.
- 31 Mar 2023Compromised PyTorch Dependency Chain
- 31 Mar 2023PyTorch statement on compromised dependency
- 31 Mar 2023Analysis by BleepingComputer
Sources · 4
News and write-ups
- 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-
Research and catalogues
- 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
Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.
Classification
- lane
- Supply chain
- AI role
- Attack on AI
- categories
- Supply chain
- severity
- 3 · Confirmed exploitation
- fix status
- Fix status unknown
- targets
- Framework / tooling
- owasp llm top 10
- LLM03:2025 Supply Chain
- mitre atlas
- AML.T0010 AI Supply Chain Compromise
- dates
- happened 25 Dec 2022 · first reported 31 Mar 2023
- origin
- AVID
- record
- confidence 0.95 · created 2026-10-18 06:56Z · updated 2026-10-18 06:56Z
Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned
Copy a brief
This record as a short Markdown brief, for a ticket, a chat or a coding agent.
the brief as text
# PyTorch-Nightly PyPI Package Compromised with Malicious Dependency https://gcdradar.vercel.app/incidents/pytorch-nightly-pypi-package-compromised-with-malicious-depe · AIR-2023-0010 · closed 2023-04-14 - Lane: Supply chain - Severity: 3 (Confirmed exploitation) - Fix status: Fix status unknown - First reported: 2023-03-31 (happened 2022-12-25) - AI role: Attack on AI - Products: PyTorch-nightly ## Summary 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. ## What to do No action recorded; read the sources below and the vendor's advisory. ## Latest updates - 2023-03-31: Analysis by BleepingComputer (https://bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-compromise-over-holidays) - 2023-03-31: PyTorch statement on compromised dependency (https://pytorch.org/blog/compromised-nightly-dependency) - 2023-03-31: Compromised PyTorch Dependency Chain (https://atlas.mitre.org/studies/AML.CS0015) - 2023-03-31: AVID-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. (https://github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V015.json) ## Sources - 2023-03-31 AVID: AVID-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. https://github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V015.json - 2023-03-31 MITRE ATLAS: Compromised PyTorch Dependency Chain https://atlas.mitre.org/studies/AML.CS0015 - 2023-03-31 pytorch.org: PyTorch statement on compromised dependency https://pytorch.org/blog/compromised-nightly-dependency - 2023-03-31 BleepingComputer: Analysis by BleepingComputer https://bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-compromise-over-holidays Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.
Related
- closedPyTorch-nightly PyTorch-nightly Compromised via Dependency Confusion on PyPI
Supply chain · Exploited · since 3 Feb 2022
AI - closed7.5Gradio CVE-2024-47867: Gradio lacks FRP client integrity checking
Patch now · Disclosed · since 10 Oct 2024 · CVE-2024-47867
AI - closed8.4LangChain family CVE-2024-5998: LangChain pickle deserialization of untrusted data
Patch now · Disclosed · since 17 Sep 2024 · CVE-2024-5998
AI - closed8.4LoLLMs CVE-2024-4897: RCE vulnerability in lollms-webui via insecure dependency
Patch now · Disclosed · since 2 Jul 2024 · CVE-2024-4897
AI - closed9.6llama-cpp-python CVE-2024-34359: Llama-cpp-python remote code execution via Jinja2 chat templates
Patch now · Disclosed · since 13 May 2024 · updated 14 May 2024 · CVE-2024-34359
AI - closed3.4Hugging Face libraries Hugging Face Transformers Deserialization Remote Code Execution
Patch now · Disclosed · since 10 Apr 2024 · CVE-2024-3568
AI