Vulnerabilities · 2025 · Llamaindex
CVE-2025-3108
Llamaindex vulnerability
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.
Affected products
Llamaindex. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Llamaindex runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/run-llama/llama_index/commit/702e4340623092fac4cf2fe95eb9465034856da3 · Patch
- huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-3108
- github.com/run-llama/llama_index/blob/v0.12.41/CHANGELOG.md#llama-index-core-01241
- github.com/advisories/GHSA-m84c-4c34-28gf
- nvd.nist.gov/vuln/detail/CVE-2025-3108
- cve.org/CVERecord?id=CVE-2025-3108
More vulnerabilities in Llamaindex products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.