DLOmix can run attacker code when loading PyTorch model files

High 8.5SE Fix-First Score 47/100CVE-2026-141343SE-AIV-01908Unsafe loading of model or data filesModels and ML frameworksMade public 1 Dec 2026

Download as PDF

What this means

An attacker can run code on your machine with the same permissions as the user running DLOmix. This can lead to stolen data, ransomware, or complete system compromise. The risk is especially high if DLOmix runs on shared servers or as a service account with broad access.

SecurityElites Manager Brief: the decision in one minute

DLOmix loads PyTorch model files in an unsafe way that lets attackers run code. The risk is high if your team downloads models from public repositories or accepts model files from others. You need to upgrade DLOmix to version 0.4.1 or later immediately.

SecurityElites Fix-First Score47 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixMachine learning or AI platform team, with help from security if models come from outside sources.
Likely effortAbout 15 minutes per machine: check the version, upgrade DLOmix, restart any services, and verify the fix. It may take longer if DLOmix is embedded in a larger application or if you need to test before deploying.

Questions to ask your team or supplier

  • Do we load PyTorch models from Hugging Face Hub, GitHub, or other public sources? If so, how often and which models?
  • What permissions and data access does the service account or user running DLOmix have? Could an attacker reach sensitive data or systems?
  • Do we have a process to review or test model files before loading them, or do we load them directly without inspection?

Message you can forward to the owning team

Security notice: DLOmix can run attacker code when loading PyTorch model files (CVE-2026-141343)

Severity: High (8.5 of 10)
SecurityElites Fix-First Score: 47 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to DLOmix 0.4.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-141343-dlomix-can-run-attacker-code-when-loading-pytorch-model/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01908

What is at stake in your AI setup

  • Model files: Attackers can inject malicious code into model.pt files downloaded from repositories, triggering execution during load.
  • Compute resources and costs: Injected code could use the GPU or CPU for cryptomining or other resource-intensive tasks, increasing bills.
  • Keys for AI providers and APIs: If service accounts running DLOmix have access to keys for Hugging Face, OpenAI, or other providers, those keys could be stolen.
  • Training or retrieval data: If the machine running DLOmix has access to proprietary training data or company documents used for retrieval, an attacker gains access to those assets.

Map where your company uses AI

Who is exposed

  • Teams using DLOmix to load models from Hugging Face Hub or other public model repositories
  • Services that accept or cache PyTorch model files from users or external sources
  • Shared compute servers where DLOmix runs as a service account with elevated privileges
  • Development environments where researchers download and test pre-trained models
  • Teams using only private, internally-built models are at lower risk if they do not load untrusted model files

Upgrades you need

SoftwareAffected versionsMove to
wilhelm-lab DLOmix0.2.8 up to, but not including, 0.4.10.4.1 or later

The fixed version here was taken from the vendor's own CVE record, because the national database has not listed it yet.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedWorking attack code is public, so expect attacks to follow
Where the attacker must beAlready on the machine, or able to get a user to open something on it
Account neededNone. No login is needed
Does a person have to do somethingYes, a small ordinary action by a user
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Kind of coding mistake

  • CWE-502: untrusted data is loaded as objects

Where it sits in the standards

OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)

Signs it may already have been used against you

  • Review process logs and system call traces on machines running DLOmix around the times when models were loaded via InferencePipeline.load or from_pretrained.
  • Look for unexpected child processes spawned by Python, unusual network connections initiated from the DLOmix process, or file access outside normal model directories.
  • Check application logs for errors or warnings related to model loading that may indicate a malicious model was attempted.
  • If DLOmix runs as a service account, audit that account's login history and privilege changes in the days before the upgrade.

Log searches to start from

Find DLOmix model load calls and child process creation (adapt field names for your environment)Splunk

process.name=python* OR process.name=python | search "DLOmix" OR "InferencePipeline" OR "from_pretrained" | fields timestamp, process.name, process.parent_name, process.args, host | sort timestamp desc

Look for unusual network or file access from Python processes running DLOmix (adapt field names for your environment)Elastic

process.name:python* AND (process.args:*DLOmix* OR process.args:*from_pretrained*) | stats count by host, process.pid, destination.ip, file.path

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where DLOmix is installedCheck all machines, containers, and services where DLOmix is running. Look in Python package lists, container images, and deployment configs. Run `pip list | grep -i dlomix` on each machine.
  2. Check the DLOmix version on each systemNote the version number. If it is 0.2.8 or any version up to 0.4.0, the system is affected. If it is 0.4.1 or later, it is already fixed.
  3. Review model sources and usageList all places where DLOmix loads model files using InferencePipeline.load or from_pretrained. Note which models come from Hugging Face Hub, public repositories, or external sources. This helps you decide if the risk applies to your setup.
  4. Check for signs of prior exploitationLook at logs from the machines running DLOmix for unusual process execution, network connections, or file access around the time models were loaded. See the detect section for details.
  5. Upgrade DLOmix to version 0.4.1 or laterUse your package manager to install the fixed version. For example: `pip install --upgrade DLOmix==0.4.1` or use your deployment tool to roll out the update.
  6. Restart services and applicationsRestart any service, container, or application that uses DLOmix to ensure the new code is loaded.
  7. Verify the upgrade workedRun `pip list | grep -i dlomix` again to confirm version 0.4.1 or later is installed. Test loading a known good model file to ensure DLOmix still works correctly.
  8. Review and monitor model sources going forwardIf your team downloads or accepts models from external sources, establish a process to review them before loading. Monitor logs for model load operations on critical systems.

How to confirm it is fixed: Confirm DLOmix version 0.4.1 or later is installed with `pip list | grep -i dlomix`, and test loading a known good model file through InferencePipeline.load to ensure normal operation.

SecurityElites Quick Fixes: copy and paste

Check installed DLOmix versionfor this issue

pip list | grep -i dlomix

List all Python packages to find DLOmix in requirements or lock filesfor this issue

grep -r "DLOmix" requirements.txt Pipfile poetry.lock setup.py 2>/dev/null

Load PyTorch weights without running codegeneral hardening

import torch
state = torch.load("model.pt", weights_only=True)

Load safetensors weightsgeneral hardening

from safetensors.torch import load_file
state = load_file("model.safetensors")

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2026-141343) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - DLOmix: must be 0.4.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the first step you would take if told DLOmix 0.3.5 was running on a production machine?A good answer: Check if the machine loads models from external or public sources; if yes, isolate it and review logs immediately for signs of exploitation before upgrading.
Why is loading a model from Hugging Face Hub riskier than loading one you built in-house?A good answer: Public repositories can host malicious model files created by attackers, whereas internal models are under your control and have been reviewed by your team.
What would an attacker be able to do after the malicious code runs?A good answer: They would have the same permissions as the user or service account running DLOmix, allowing them to read files, steal data, modify systems, or install malware.
How would you confirm that the fix worked after upgrading DLOmix?A good answer: Run `pip list` to verify DLOmix is version 0.4.1 or later, and test loading a known good model to ensure the application still functions correctly.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## DLOmix can run attacker code when loading PyTorch model files (CVE-2026-141343)

**Severity:** High 8.5  |  **SE Fix-First Score:** 47/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01908 https://securityelites.com/ai-vulnerabilities/cve-2026-141343-dlomix-can-run-attacker-code-when-loading-pytorch-model/

### Why this matters
An attacker can run code on your machine with the same permissions as the user running DLOmix. This can lead to stolen data, ransomware, or complete system compromise. The risk is especially high if DLOmix runs on shared servers or as a service account with broad access.

### What to do
1. Find where DLOmix is installed
2. Check the DLOmix version on each system
3. Review model sources and usage
4. Check for signs of prior exploitation
5. Upgrade DLOmix to version 0.4.1 or later
6. Restart services and applications
7. Verify the upgrade worked
8. Review and monitor model sources going forward

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-141343-dlomix-can-run-attacker-code-when-loading-pytorch-model/

### Done when
- [ ] DLOmix is at 0.4.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm DLOmix version 0.4.1 or later is installed with `pip list | grep -i dlomix`, and test loading a known good model file through InferencePipeline.load to ensure normal operation.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 1 Dec 2026: Made public
  • 1 Dec 2026: Fixed version added, from the vendor's own CVE record
  • 1 Dec 2026: Published

Official record

DLOmix 0.2.8 before 0.4.1 contains an unsafe deserialization vulnerability that allows attackers to execute code by supplying malicious PyTorch model files to InferencePipeline.load. Attackers can publish a crafted model.pt in a Hugging Face Hub repository loaded via from_pretrained, triggering torch.load with weights_only=False to run code with the user's privileges.

Weakness type: CWE-502

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-141343

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.