Skip to main content

Tencent PatrickStar CVE-2025-13706

HIGH
Deserialization of Untrusted Data (CWE-502)
2025-12-23 zdi-disclosures@trendmicro.com
7.8
CVSS 3.0 · Vendor: trendmicro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious checkpoint file
  2. Exploit
    Lure victim to load via merge_checkpoint
  3. Execution
    Trigger unsafe deserialization (CWE-502)
  4. Impact
    Execute arbitrary code as root

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 the victim to load attacker-supplied data through PatrickStar's merge_checkpoint endpoint - i.e., opening a malicious checkpoint/model file or visiting a page that triggers that load - which deserializes untrusted data (CWE-502). The limiting factors are mandatory user interaction (UI:R) and a local attack vector (AV:L): there is no remote, unauthenticated, network-triggerable path, so an attacker must socially engineer the target into processing the crafted file. No authentication is required of the attacker (PR:N), and successful exploitation yields code execution as root, but realistic risk is confined to environments where users ingest untrusted PatrickStar checkpoints.

Impact

Signals point to a genuine but non-urgent issue. The CVSS 3.0 base score of 7.8 (HIGH) is driven by severe impact (C:H/I:H/A:H, with code execution in the context of root per the ZDI advisory), but the vector itself tempers real-world urgency: AV:L means the attacker has no network path and AC:L/PR:N is offset by UI:R - a victim must actively open a malicious checkpoint file or visit a malicious page. The EPSS probability of 0.51% (42nd percentile) is low, there is no CISA KEV listing, and no public exploit was identified in the provided data, so there is no evidence of widespread or active exploitation. These signals are consistent rather than conflicting: a high-impact-but-user-interaction-gated deserialization bug in a niche ML library. One caveat to verify: the only linked 'fix' reference is a GitHub commit that merely relaxes requirements.txt version pins (torch/transformers) and does not visibly patch the deserialization path, so the actual remediation and fixed version are not confirmed from available data. Net: a real priority for the small population running PatrickStar with untrusted checkpoint inputs, but not a broad emergency.

Exploit ScenarioDerived

An attacker crafts a malicious model checkpoint file and lures a PatrickStar user into loading it (e.g., sharing a 'pretrained' checkpoint or linking a malicious page). When the victim processes it through the merge_checkpoint endpoint, the untrusted data is deserialized and attacker-controlled code runs in the context of root. No public exploit was identified at time of analysis, though the root-level impact makes the technique attractive if weaponized.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 19, 2026

Deserialization of untrusted data in Tencent PatrickStar's merge_checkpoint endpoint lets an attacker execute arbitrary code with root privileges when a user loads a crafted checkpoint or opens a malicious page that triggers the endpoint. Exploitation requires user interaction and a local attack path; no authentication is needed, but there is no remote unauthenticated network-triggerable route. EPSS is 0.51% (42nd percentile) and no public exploit has been identified at time of analysis.

RemediationAI

Apply the upstream fix commit 2384535503ea98cfe35ad04e20c0cfc7bf58d5d7 or upgrade to a PatrickStar release that includes it; a specific patched version number is not provided, so released patched status is not independently confirmed (upstream fix available via PR/commit). Until a fixed release is validated, avoid loading checkpoints or model files from untrusted sources, restrict merge_checkpoint use to trusted artifacts, run PatrickStar with least privilege instead of root, and execute checkpoint merging in an isolated container or sandbox without access to sensitive host data. Disabling or gating merge_checkpoint reduces exposure but may break legitimate model-merge workflows; least-privilege and sandboxing can add operational overhead and may require changes to file permissions or orchestration. Consult https://www.zerodayinitiative.com/advisories/ZDI-25-1034/ and the referenced commit for vendor guidance.

Affected ProductsAI

Tencent PatrickStar installations that process checkpoints through the merge_checkpoint endpoint are affected. No CPE strings or explicit version ranges were supplied in the available data; the upstream fix commit is 2384535503ea98cfe35ad04e20c0cfc7bf58d5d7, and the ZDI advisory ZDI-25-1034 (https://www.zerodayinitiative.com/advisories/ZDI-25-1034/) is the vendor-linked disclosure. Users should treat PatrickStar versions or builds containing the unfixed merge_checkpoint code as potentially affected until a release containing the commit is confirmed.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is classified as CWE-502, deserialization of untrusted data, in the merge_checkpoint functionality of Tencent PatrickStar. The endpoint processes checkpoint data without properly validating user-supplied content before deserialization, which can allow attacker-controlled objects to be instantiated during checkpoint loading; in machine-learning checkpoint tooling this commonly involves Python pickle or framework-specific loaders, though the provided advisory does not name the exact serializer. The assessed CVSS 3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H indicates local access, low attack complexity, no required privileges, mandatory user interaction, and high confidentiality, integrity, and availability impact. The referenced upstream commit 2384535503ea98cfe35ad04e20c0cfc7bf58d5d7 changes requirements.txt dependency pins for torch and transformers; the provided diff excerpt does not show the validation change itself, so the precise code fix is not confirmed from available evidence.

Know when Pytorch 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

Vendor (trendmicro) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

File/checkpoint-borne deserialization gives AV:L and UI:R; attacker supplies the malicious file so PR:N, and root-context code execution yields C:H/I:H/A:H.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (trendmicro).

CVSS VectorVendor: trendmicro

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Tencent PatrickStar merge_checkpoint Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent PatrickStar. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the merge_checkpoint endpoint. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27182.

Executive ViewAI

Why It Matters

A high-severity flaw in Tencent PatrickStar, the checkpoint-merge component used in large model training pipelines, allows crafted checkpoint files or a malicious web page to execute code with root privileges on the machine that loads them. Because exploitation requires a user to open a malicious checkpoint or page, the risk concentrates on engineering workstations and shared training hosts where checkpoints are routinely exchanged, and any successful compromise would grant full administrative control of that system. Leadership should care because these hosts typically hold model artifacts, credentials, and access to internal training infrastructure, so a single user mistake could expose sensitive intellectual property and provide a foothold deeper in the environment.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: run PatrickStar's merge_checkpoint endpoint and any checkpoint-loading workflow as a non-root, least-privileged account inside a container or sandbox with no access to production credentials; restrict the endpoint to localhost or an allowlisted set of users and hosts; require hash/signature validation and provenance checks on all checkpoints before loading; block untrusted links and untrusted checkpoint sources at the mail and web gateway; and monitor for anomalous child processes or privilege escalation originating from PatrickStar.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Low
niche Tencent ML training library, minimal production/enterprise footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2023-43654 CRITICAL POC
9.8 Sep 28

TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vuln

CVE-2024-48063 CRITICAL POC
9.8 Oct 29

In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2025-1945 CRITICAL POC
9.8 Mar 10

PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files

CVE-2022-45907 CRITICAL POC
9.8 Nov 26

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is

CVE-2026-24747 HIGH POC
8.8 Jan 27

PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]

CVE-2024-8020 HIGH POC
7.5 Mar 20

A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sendi

CVE-2026-65918 HIGH POC
7.1 Jul 23

Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply

CVE-2025-1944 MEDIUM POC
6.5 Mar 10

picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to e

CVE-2024-35198 CRITICAL
9.8 Jul 19

TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical sever

CVE-2025-32434 CRITICAL POC
9.3 Apr 18

PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built

CVE-2025-33244 CRITICAL
9.0 Mar 24

NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch

CVE-2025-2953 MEDIUM POC
4.8 Mar 30

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy