Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStage malicious .pt checkpoint with __reduce__ payload
-
DeliveryDeliver file to target model directory
-
ExploitVictim or pipeline calls load_quantized_model_pt()
-
Executiontorch.load invokes pickle with weights_only=False
-
Persist__reduce__ executes arbitrary Python code
-
ImpactAttacker achieves OS command execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target environment has onecomp version 1.2.0 installed and that application code calls QuantizedModelLoader.load_quantized_model_pt() with a path that resolves to an attacker-controlled .pt checkpoint file. The CVSS UI:A metric confirms that a user or automated process must actively invoke the load operation - passive exploitation without triggering the load is not possible. The AV:L metric indicates the malicious checkpoint file must be present on the local filesystem at load time; the attacker must therefore first stage the file via download, supply-chain substitution, or social engineering. PR:N confirms no elevated privileges are needed to craft or deliver the malicious file. Exploitation is limited to environments that: (1) run the specific affected version 1.2.0, (2) load model checkpoints from sources not under strict integrity control, and (3) have not patched to 1.2.1. Default-safe PyTorch configurations (weights_only=True) are bypassed because OneCompression hardcodes the unsafe flag regardless of caller intent. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H) scores 8.4 and accurately reflects the realistic exploitation scenario: the attacker does not need any network-level access or privileges, but the victim must actively load a malicious checkpoint file (UI:A), and the malicious file must reach the target filesystem (AV:L). This is a model-poisoning or supply-chain attack pattern common in MLOps pipelines, where model files are routinely downloaded from public registries, shared repositories, or third-party sources. The impact metrics (VC:H/VI:H/VA:H) reflect full RCE within the process. There is no KEV listing and no EPSS score was provided in the input data, so real-world exploitation frequency cannot be quantified. The niche footprint of the onecomp library limits blast radius relative to ubiquitous ML frameworks, but pipelines that automate checkpoint loading without provenance verification are genuinely at risk. No conflicting signals between CVSS vector and description were identified. |
| Exploit ScenarioDerived | An attacker crafts a malicious .pt checkpoint file containing a Python class with a __reduce__ method that spawns a reverse shell or exfiltrates environment variables when unpickled. The file is uploaded to a shared model repository or delivered via a compromised model source, and a victim data scientist or automated ML pipeline invokes QuantizedModelLoader.load_quantized_model_pt() pointing to the attacker-controlled path - triggering code execution in the process context with whatever privileges the loading application holds. No public proof-of-concept code has been identified, but this class of attack is well-documented in the PyTorch ecosystem and requires no specialized tooling beyond Python's built-in pickle module. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Arbitrary code execution in Fujitsu Research's OneCompression (onecomp) Python library 1.2.0 is triggered when a victim loads a crafted PyTorch checkpoint file via the library's QuantizedModelLoader API, which unconditionally invokes Python's pickle machinery. The root cause is the hardcoded use of torch.load with weights_only=False in load_quantized_model_pt(), allowing an attacker-supplied checkpoint to embed malicious __reduce__ methods that execute arbitrary Python - including OS commands - in the context of the loading process. No public exploit code has been identified at time of analysis, though a patched version (1.2.1) is available on PyPI per the VulnCheck advisory.
RemediationAI
Upgrade the onecomp package to version 1.2.1 immediately via pip install --upgrade onecomp; this is the vendor-released patch confirmed on PyPI at https://pypi.org/project/onecomp/1.2.1/. If an immediate upgrade is not feasible, the specific compensating control is to avoid calling load_quantized_model_pt() with any checkpoint file sourced from an untrusted or unverified origin - restrict model loading to files with a verified cryptographic signature or hash checked against a trusted manifest before the load call. As an alternative workaround in code, callers can monkey-patch or wrap the loader to intercept the torch.load call and enforce weights_only=True, though this may break loading of models that include non-tensor objects and requires testing for compatibility. Do not rely on filesystem permissions alone, as the vulnerability is in the deserialization of the file content, not file access control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PyTorch's torch.load function supports two deserialization modes: weights_only=True (safe, restricts unpickling to tensor primitives) and weights_only=False (unsafe, invokes Python's full pickle machinery). PyTorch deprecated and then restricted the unsafe mode precisely because .pt/.pth checkpoint files are serialized Python objects, and pickle's __reduce__ protocol allows arbitrary class instantiation and code execution at deserialization time. The affected component, QuantizedModelLoader.load_quantized_model_pt() in cpe:2.3:a:fujitsu_research:onecompression:*:*:*:*:*:*:*:* version 1.2.0, hardcodes weights_only=False, meaning any caller passing an untrusted checkpoint path exposes the process to full code execution. CWE-502 (Deserialization of Untrusted Data) precisely captures this class: the application trusts the structure and content of a serialized object from an untrusted source without validation.
Know when Onecompression gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:L because malicious file must be on local filesystem; UI:R because victim must invoke the load; PR:N as no privileges needed to craft payload; S:U as no scope change per CVSS 4.0 SC/SI/SA all N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Fujitsu Research's OneCompression library 1.2.0 contains an unsafe deserialization vulnerability that allows attackers to execute arbitrary code by supplying a crafted model.pt checkpoint file, as QuantizedModelLoader.load_quantized_model_pt() unconditionally calls torch.load with weights_only=False, invoking Python's pickle machinery during deserialization. Attackers can embed malicious __reduce__ methods in a crafted model checkpoint to execute arbitrary Python code, including system commands, when the library loads the file from a caller-selected model directory.
Articles & Coverage 1
Executive ViewAI
Fujitsu Research's OneCompression Python library version 1.2.0 contains a critical arbitrary code execution vulnerability that allows attackers to execute malicious commands when organization members load compromised PyTorch checkpoint files. Any team using this library to process model files-including data science, ML engineering, or AI development teams-faces direct risk of system compromise and data exfiltration.
Apply vendor patch (OneCompression version 1.2.1 or later). Interim: restrict checkpoint file loading to internally-controlled, pre-approved model sources only; disable automated downloads from external repositories until patching is complete.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-57313
GHSA-f3q7-jj9x-2wjr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB