一、 漏洞 CVE-2025-6209 基础信息
漏洞信息
                                        # 通过路径遍历在 run-llama/llama_index 中任意文件读取

## 漏洞概述
run-llama/llama_index 版本 0.12.27 至 0.12.40 存在一个路径遍历漏洞。该漏洞存在于 `generic_utils.py` 文件中的 `encode_image` 函数里,攻击者可通过操纵 `image_path` 输入读取服务器上的任意文件,包括敏感的系统文件。

## 影响版本
- 0.12.27 至 0.12.40

## 漏洞细节
漏洞原因是文件路径没有经过适当的验证或清理,导致攻击者可以使用路径遍历序列访问超出预期目录的文件。修复版本为 0.12.41。

## 影响
该漏洞允许攻击者通过路径遍历读取服务器上的任意文件,可能泄露敏感信息或造成其他潜在危害。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Arbitrary File Read through Path Traversal in run-llama/llama_index
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
路径遍历:’..filename’
来源:美国国家漏洞数据库 NVD
漏洞标题
LlamaIndex 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
LlamaIndex是LlamaIndex开源的一个 LLM 应用程序的数据框架。 LlamaIndex 0.12.27至0.12.40版本存在安全漏洞,该漏洞源于generic_utils.py中encode_image函数路径验证不足,可能导致路径遍历攻击。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-6209 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-6209 的情报信息