Skip to main content

R-KV CVE-2026-136139

| EUVDEUVD-2026-134821 LOW
Path Traversal (CWE-22)
2026-11-25 cna@vuldb.com GHSA-88vx-hj84-4m4r
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Publish crafted model checkpoint
  2. Exploit
    Victim loads model via R-KV loader
  3. Execution
    Malicious weight_map escapes model directory
  4. Impact
    load_weights reads attacker-chosen files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the victim to load an attacker-controlled or tampered model directory through R-KV's FlashInfer weight loader, where the model.safetensors.index.json index supplies a weight_map whose shard entries are not bare file names - i.e. values containing '../', a subdirectory, or an absolute path. The exact trigger is the untrusted weight_map argument to _shard_files. Limiting factors: user interaction is required (UI:P) to load the malicious checkpoint, impacts are only Low confidentiality/integrity/availability with no privilege escalation or scope change, and the affected code path is a niche research LLM library, so there is no exposure against a default network service.

Impact

This is a low-priority issue despite being remotely reachable. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) scores only 2.1, and the vuln.today decision label is 'monitor' - not act_now or emergency. The key limiting signal is UI:P: exploitation is not autonomous network attack but depends on a victim loading an attacker-supplied model checkpoint through the R-KV FlashInfer loader. Impacts are all Low (VC:L/VI:L/VA:L) with no scope change, consistent with a path-traversal read/redirect in a weight loader rather than code execution. Exploitation status is best described as: a public PoC reference exists (poc.zip linked from the GitHub issue) but it is not verified as working exploit code, and there is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation. The vendor patch is confirmed to exist. Net: real but minor - a defense-in-depth fix for a research-grade LLM library, not an urgent enterprise exposure.

Exploit ScenarioDerived

An attacker publishes a malicious model checkpoint (or tampers with one) whose model.safetensors.index.json weight_map contains non-bare shard names such as '../x.safetensors' or an absolute path. When a victim loads that checkpoint via R-KV's FlashInfer loader, _shard_files joins the untrusted name to the model path and load_weights reads tensors from outside the intended model directory. A public PoC reference (poc.zip) is linked to the vulnerability, but it is not verified as working exploit code; AV:N/AC:L make the trigger easy once the victim is induced (UI:P) to load the crafted model.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 25, 2026

Path traversal in the FlashInfer weight loader of Zefan-Cai R-KV (through commit 6715468b9872442be72e5c97322e4d9c9a2abf55) lets a tampered checkpoint index steer tensor loading outside the model directory. The flaw is reachable remotely but requires the victim to load an attacker-controlled or modified model directory (user interaction), and the resulting impact is limited to Low confidentiality, integrity and availability with no scope change. Upstream fixed the shard-name handling in commit 0fdff6ed12b58ad4c33aab5a63f66e04555cafb6; a public PoC reference exists, but it is not verified as working exploit code, and vuln.today rates the item as monitor priority.

RemediationAI

Update to R-KV commit 0fdff6ed12b58ad4c33aab5a63f66e04555cafb6 or any later commit (https://github.com/Zefan-Cai/R-KV/commit/0fdff6ed12b58ad4c33aab5a63f66e04555cafb6, merged via https://github.com/Zefan-Cai/R-KV/pull/66); because the project uses rolling releases, no tagged version number exists, so remediation means moving the pinned commit forward and re-running FlashInfer/tests/test_loader.py to confirm the shard-name validation is present. If the commit cannot be adopted immediately, add a pre-load validation step that parses model.safetensors.index.json and rejects any weight_map entry that is not a bare file name - not '', '.', '..', containing a path separator, or an absolute path - before calling load_weights; the trade-off is that this guard must be maintained out-of-tree and will also block legitimate checkpoints that encode shards in subdirectories. As a complementary measure, only load checkpoints from sources you control or have verified, since exploitation requires the victim to open a crafted model directory. The vendor was contacted early and responded promptly with the fixed commit; details are tracked at https://vuldb.com/vuln/442892 and https://github.com/Zefan-Cai/R-KV/issues/65.

Affected VersionsENISA

R-KV 6715468b9872442be72e5c97322e4d9c9a2abf55

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

R-KV is a research LLM weight/loader component that reads Hugging Face-style safetensors checkpoints. In FlashInfer/rkv/loader.py, the function _shard_files opens model.safetensors.index.json and builds the shard list directly from the untrusted weight_map values via os.path.join(model_path, shard). Because the entries were never validated, a shard value containing '../', a nested subdirectory, an absolute path, or a non-string type could resolve to a file outside the intended model directory, and load_weights would then read tensors from it. This is CWE-22 (path traversal). The fix commit replaces the one-line set comprehension with a lexical check that each shard entry is a string, is not '', '.', or '..', and satisfies os.path.basename(shard) == shard, raising ValueError otherwise. The check was deliberately kept lexical rather than realpath/resolve-based because Hugging Face hub caches store snapshots/<rev>/*.safetensors as symlinks to ../../blobs/<sha>, which a resolve()-based containment test would wrongly reject; the accompanying FlashInfer/tests/test_loader.py pins that behaviour. Per the assessed CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L), exploitation needs the victim to load a crafted model directory and the trigger is the untrusted weight_map argument to _shard_files.

Know when the next one hits your stack

  • 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 (vuldb) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 6.3 MEDIUM

Attacker supplies a model over the network (AV:N) but a user must load the malicious checkpoint (UI:R); no attacker privileges (PR:N); traversal only redirects/reads weight files, giving limited C/I/A.

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

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

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

DescriptionCVE.org

A vulnerability was determined in Zefan-Cai R-KV up to 6715468b9872442be72e5c97322e4d9c9a2abf55. This impacts the function _shard_files of the file FlashInfer/rkv/loader.py of the component FlashInfer weight loader. This manipulation of the argument weight_map causes path traversal. The attack can be initiated remotely. The exploit has been publicly disclosed and may be utilized. Continious delivery with rolling releases is used by this product. Therefore, no version details of affected nor updated releases are available. Patch name: 0fdff6ed12b58ad4c33aab5a63f66e04555cafb6. To fix this issue, it is recommended to deploy a patch. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Rare
obscure single-author LLM KV-cache research project, no enterprise footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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