ghsa-m84c-4c34-28gf
Vulnerability from github
Incomplete Documentation of Program Execution 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 involves the use of an insecure fallback strategy without sufficient input validation or protective safeguards. Version 0.12.41 renames JsonPickleSerializer to PickleSerializer and adds a warning to the docs to only use PickleSerializer to deserialize safe things.
{ "affected": [ { "database_specific": { "last_known_affected_version_range": "\u003c= 0.12.40" }, "package": { "ecosystem": "PyPI", "name": "llama-index-core" }, "ranges": [ { "events": [ { "introduced": "0.11.15" }, { "fixed": "0.12.41" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-3108" ], "database_specific": { "cwe_ids": [ "CWE-1112" ], "github_reviewed": true, "github_reviewed_at": "2025-07-07T23:11:36Z", "nvd_published_at": "2025-07-06T23:15:21Z", "severity": "MODERATE" }, "details": "Incomplete Documentation of Program Execution exists in the run-llama/llama_index library\u0027s JsonPickleSerializer component, affecting versions v0.12.27 through v0.12.40. This vulnerability allows remote code execution due to an insecure fallback to Python\u0027s 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 involves the use of an insecure fallback strategy without sufficient input validation or protective safeguards. Version 0.12.41 renames JsonPickleSerializer to PickleSerializer and adds a warning to the docs to only use PickleSerializer to deserialize safe things.", "id": "GHSA-m84c-4c34-28gf", "modified": "2025-07-07T23:11:36Z", "published": "2025-07-07T00:30:18Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-3108" }, { "type": "WEB", "url": "https://github.com/run-llama/llama_index/commit/702e4340623092fac4cf2fe95eb9465034856da3" }, { "type": "PACKAGE", "url": "https://github.com/run-llama/llama_index" }, { "type": "WEB", "url": "https://github.com/run-llama/llama_index/blob/v0.12.41/CHANGELOG.md#llama-index-core-01241" }, { "type": "WEB", "url": "https://huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L", "type": "CVSS_V3" } ], "summary": "LlamaIndex has Incomplete Documentation of Program Execution related to JsonPickleSerializer component" }
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.