CVE-2025-6209 | Arbitrary File Read through Path Traversal in run-llama/llama_index

Exp

A path traversal vulnerability exists in run-llama/llama_index versions 0.12.27 through 0.12.40, specifically within the `encode_image` function in `generic_utils.py`. This vulnerability allows an attacker to manipulate the `image_path` input to read arbitrary files on the server, including sensitive system files. The issue arises due to improper validation or sanitization of the file path, enabling path traversal sequences to access files outside the intended directory. The vulnerability is fixed in version 0.12.41.

Published: 2025-07-07 Last update: 2025-07-30 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-6209 is rated High Exploit Risk (67.5/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.44%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-6209

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-6209

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-03 0.16% 0.44% +0.29%
2 2026-04-23 0.06% 0.16% +0.10%
3 2025-07-08 0.06%

Full EPSS history (3 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-6209

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.0 HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-6209

GitHub Security Advisory for CVE-2025-6209

GHSA-2rhq-96q8-4vjq · Severity: high · Ecosystem: pip — LlamaIndex vulnerable to Path Traversal attack through its encode_image function

OS Trackers for CVE-2025-6209

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2025-6209

Affected software / configurations for CVE-2025-6209

Vendor Product Version Raw CPE
llamaindex llamaindex >= 0.12.27, < 0.12.41 cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*

References for CVE-2025-6209

cvelogic Threat Intelligence