gcdRadar
archive/Supply chain/AIR-2023-0010
closedclosed 14 Apr 2023Supply chain3 Confirmed exploitationAI

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

  1. 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.
  2. 31 Mar 2023Compromised PyTorch Dependency Chain
  3. 31 Mar 2023PyTorch statement on compromised dependency
  4. 31 Mar 2023Analysis by BleepingComputer

Sources · 4

News and write-ups

  1. 2023-03-31
    PyTorch statement on compromised dependency
    pytorch.org · pytorch.org/blog/compromised-nightly-dependency
  2. 2023-03-31
    Analysis by BleepingComputer
    BleepingComputer · bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-

Research and catalogues

  1. 2023-03-31
  2. 2023-03-31
    Compromised PyTorch Dependency Chain
    MITRE 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

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
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

  1. closed
    AI
  2. closed7.5
    Gradio CVE-2024-47867: Gradio lacks FRP client integrity checking

    Patch now · Disclosed · since 10 Oct 2024 · CVE-2024-47867

    AI
  3. closed8.4
    LangChain family CVE-2024-5998: LangChain pickle deserialization of untrusted data

    Patch now · Disclosed · since 17 Sep 2024 · CVE-2024-5998

    AI
  4. closed8.4
    LoLLMs CVE-2024-4897: RCE vulnerability in lollms-webui via insecure dependency

    Patch now · Disclosed · since 2 Jul 2024 · CVE-2024-4897

    AI
  5. closed9.6
    llama-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
  6. closed3.4
    Hugging Face libraries Hugging Face Transformers Deserialization Remote Code Execution

    Patch now · Disclosed · since 10 Apr 2024 · CVE-2024-3568

    AI