Skip to main content

KTransformers CVE-2026-26210

| EUVDEUVD-2026-25305 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-04-23 VulnCheck GHSA-w598-p4vc-7qcx
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Scan network for exposed scheduler port
  2. Delivery
    Craft malicious pickle payload
  3. Exploit
    Send to unauthenticated ZMQ ROUTER socket
  4. Execution
    pickle.loads deserializes payload
  5. Persist
    Execute arbitrary code as ktransformers process
  6. Impact
    Full host compromise

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 target to be running KTransformers (≤0.5.3) in balance_serve backend mode, which starts the scheduler RPC server; that server binds its ZMQ ROUTER socket to all interfaces (tcp://*:{sched_port}) with no authentication, so the attacker only needs network reachability to the scheduler port. No credentials, user interaction, or non-default socket options are needed once balance_serve is active (matches AV:N/AC:L/PR:N/UI:N). The primary limiting factors are deployment-specific: the vulnerable path exists only in balance_serve mode (not the default/other backends) and only when the scheduler port is exposed beyond loopback - installs not using balance_serve, or with the port firewalled to localhost, are not remotely exploitable.

Impact

The signals are strongly aligned on high technical severity but mixed on real-world urgency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H/VA:H, base 9.3) and SSVC (Technical Impact: total, Automatable: yes) both indicate a trivially exploitable, fully-impactful RCE, and public exploit code plus source-level confirmation from the patch diff remove any doubt about feasibility. Against this, EPSS is very low (0.04%, 11th percentile) and the CVE is not listed in CISA KEV, indicating no confirmed active exploitation and a limited install base rather than mass scanning. The key mitigating nuance not captured by the raw CVSS: exploitation requires the balance_serve backend mode to be running and its scheduler port to be network-reachable - a specific, non-default deployment rather than every KTransformers install. Net: this is a genuine critical-severity RCE that should be patched promptly wherever balance_serve is exposed, but the low EPSS and niche footprint suggest targeted rather than widespread exploitation risk.

Exploit ScenarioDerived

An attacker scans for exposed KTransformers scheduler ports and finds a balance_serve deployment with its ZMQ ROUTER socket reachable on the network. They send a single crafted pickle payload whose __reduce__ method spawns a reverse shell; the server deserializes it with pickle.loads() and executes the code as the ktransformers process, yielding full RCE with no authentication or user interaction. Public exploit code (chocapikk / VulnCheck) demonstrates the technique.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Remote code execution in KTransformers through 0.5.3 lets unauthenticated network attackers run arbitrary code by sending a crafted pickle payload to the scheduler RPC service used in balance_serve backend mode. The affected code binds a ZMQ ROUTER socket to all interfaces (0.0.0.0) with no authentication and passes received frames straight into pickle.loads(), so any host that can reach the scheduler port gains code execution as the ktransformers process. Publicly available exploit code exists (VulnCheck/chocapikk write-up) and a vendor upstream fix is available, though the EPSS probability is currently low at 0.04%.

RemediationAI

Apply the upstream fix from GitHub PR https://github.com/kvcache-ai/ktransformers/pull/1944, which binds the scheduler socket to 127.0.0.1 by default, adds HMAC-SHA256 authentication of RPC frames, and replaces pickle.loads with a restricted unpickler - a released patched version number is not independently confirmed from the input, so upgrade to the first tagged release incorporating PR #1944 and set KTRANSFORMERS_RPC_SECRET as the patch requires. Until you can deploy the fix, restrict exposure of the scheduler port: bind the service to loopback or a private interface and use host firewall rules to block the sched_port from all untrusted networks (side effect: breaks multi-host scheduler setups that rely on cross-node connectivity, so scope firewall rules to trusted worker hosts only). Where balance_serve mode is not needed, disable it to remove the vulnerable RPC server entirely. See the VulnCheck advisory (https://www.vulncheck.com/advisories/ktransformers-unsafe-deserialization-rce-via-balance-serve) and the exploit write-up (https://chocapikk.com/posts/2026/ktransformers-pickle-rce/) for detection context.

Affected VersionsENISA

ktransformers 0 ≤0.5.3

Affected Packages

euvd ktransformers no fix

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

KTransformers is a heterogeneous CPU/GPU LLM inference framework from kvcache-ai. In balance_serve mode it runs an internal scheduler as a separate process that communicates over a ZeroMQ (ZMQ) ROUTER/DEALER RPC channel (sched_rpc.py). The vulnerability is a classic CWE-502 Deserialization of Untrusted Data: the server called pickle.loads() on raw ZMQ frames, and Python's pickle can invoke arbitrary callables (via __reduce__) during deserialization, turning any attacker-controlled byte stream into code execution. Two design faults compounded the risk - the socket bound to tcp://*:{sched_port} (all interfaces rather than loopback) and there was no message authentication. The PR #1944 fix addresses all three: it binds to 127.0.0.1 by default, adds HMAC-SHA256 signing/verification of frames with a shared secret, and replaces pickle.loads with a RestrictedUnpickler allowlisting only safe types plus the C++ scheduler extension objects, while moving KV-cache tensor transport to safetensors. The single affected CPE is cpe:2.3:a:kvcache-ai:ktransformers.

Know when Ktransformers 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 (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.8 CRITICAL

Unauthenticated network RCE via an exposed no-auth ZMQ socket gives AV:N/AC:L/PR:N/UI:N; arbitrary code execution as the process yields full C:H/I:H/A:H with no scope change.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
PoC Detected
Apr 24, 2026 - 14:50 vuln.today
Public exploit code
CVSS changed
Apr 23, 2026 - 22:28 NVD
9.8 (CRITICAL) 9.3 (CRITICAL)
Patch released
Apr 23, 2026 - 21:45 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:24 nvd
CRITICAL 9.3

DescriptionCVE.org

KTransformers through 0.5.3 contains an unsafe deserialization vulnerability in the balance_serve backend mode where the scheduler RPC server binds a ZMQ ROUTER socket to all interfaces with no authentication and deserializes incoming messages using pickle.loads() without validation. Attackers can send a crafted pickle payload to the exposed ZMQ socket to execute arbitrary code on the server with the privileges of the ktransformers process.

Executive ViewAI

Why It Matters

KTransformers through version 0.5.3 contains an unauthenticated remote code execution vulnerability in its balance_serve backend that allows any network-capable attacker to execute arbitrary code and fully compromise affected systems. Organizations running this component expose their model serving infrastructure and any data processed through it to immediate takeover. Urgent remediation is required to prevent unauthorized access and potential data exfiltration.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Low
niche open-source LLM inference framework, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
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.

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