CVE-2025-3108
HIGH 7.5CVSS 3.1LlamaIndex has Incomplete Documentation of Program Execution related to JsonPickleSerializer component
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.
- Published
- 6 Jul 2025
- Last modified
- 13 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-1112
- Also known as
- GHSA-m84c-4c34-28gfPYSEC-2025-249PYSEC-2026-1564
- Sources
- NVDJSONOSV GHSA-m84c-4c34-28gfJSONOSV PYSEC-2025-249JSONOSV PYSEC-2026-1564JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | PyPA | CVSS 3.0 | MEDIUM 5.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | llamaindex | llamaindexcpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:* |
>= 0.12.27, < 0.12.41 | 0.12.41 |
| OSV | PyPI | llama-index-core | >= 0.11.15, < 0.12.41 | 0.12.41 |
| OSV | PyPI | llama-index | >= 0.12.27, < 0.12.41 | 0.12.41 |
References
- https://github.com/run-llama/llama_index/commit/702e4340623092fac4cf2fe95eb9465034856da3 · Patch, WEB, FIX
- https://huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-3108 · ADVISORY
- https://github.com/run-llama/llama_index · PACKAGE
- https://github.com/run-llama/llama_index/blob/v0.12.41/CHANGELOG.md#llama-index-core-01241 · WEB
- https://pypi.org/project/llama-index-core · PACKAGE
- https://github.com/advisories/GHSA-m84c-4c34-28gf · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 6 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jul 2025)