CVE-2025-3108: run-llama/llama_index - Remote Code Execution
- Cve: CVE-2025-3108
- Name: run-llama/llama_index - Remote Code Execution
- Description: A critical deserialization vulnerability exists in the run-llama/llama_index library's JsonPickleSerializer component, affecting versions v0.12.27 through v0.12.40. This vulnerability allows remote code execution due to an insecure fallback to Python's pickle module. JsonPickleSerializer prioritizes deserialization using pickle.loads(), which can execute arbitrary code when processing untrusted data. Attackers can exploit this by crafting malicious payloads to achieve full system compromise. The root cause includes an insecure fallback mechanism, lack of validation or safeguards, misleading design, and violation of Python security guidelines.
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
- Remediation: Upgrade to a version later than v0.12.40 or the latest available version.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.005
- Epss percentile: 0.43704
- Assignee: [email protected]
- Published at: 2025-07-06T23:15:21Z
- Age in days: 506
- Modified at: 2026-06-17T09:19:12Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-3108
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1112 | Incomplete Documentation of Program Execution |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a | nvd | 2025-07-06 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/run-llama/llama_index/commit/702e4340623092fac4cf2fe95eb9465034856da3 | nvd | Patch |
| https://huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| llamaindex:llamaindex | >= 0.12.27, < 0.12.41 | no | nvd | /v1/products/llamaindex/llamaindex |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| run-llama/llama_index | commit, fix, package | yes | /v1/repositories/run-llama/llama_index |
Index
- Repositories: 63
- Repositories high signal: 32
- Packages: 2
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-07-06
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts