{"id":"CVE-2023-39662","aliases":["CVE-2023-39662","GHSA-2xxc-73fv-36f7","PYSEC-2023-148"],"related":[],"kind":"vulnerability","state":"published","title":"llama-index vulnerable to arbitrary code execution","summary":"An issue in llama_index v.0.7.13 and before allows a remote attacker to execute arbitrary code via the `exec` parameter in PandasQueryEngine function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue in llama_index v.0.7.13 and before allows a remote attacker to execute arbitrary code via the `exec` parameter in PandasQueryEngine function.","source":"cvelist"},{"lang":"es","text":"Un problema en llama_index v.0.7.13 y anteriores permite a un atacante remoto ejecutar código arbitrario a través del parámetro `exec` en la función PandasQueryEngine.","source":"nvd"}],"published":"2023-08-15T00:00:00.000Z","modified":"2026-06-17T06:12:41.370Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-74","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.14"}],"ecosystem":"PyPI","package":"llama-index","purl":"pkg:pypi/llama-index","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.7.13"}],"vendor":"llamaindex_project","product":"llamaindex","cpe":"cpe:2.3:a:llamaindex_project:llamaindex:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.14"}],"ecosystem":"PyPI","package":"llama-index","purl":"pkg:pypi/llama-index","source":"pysec"}],"references":[{"url":"https://github.com/jerryjliu/llama_index/issues/7054","tags":["evidence","exploit","issue-tracking","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39662","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/run-llama/llama_index/commit/9f3e50a803f519af9ab62e63d413441c43001d81","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/run-llama/llama_index/commit/aa6726706476e0f957a8d57a5ca89e519e93bad7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jerryjliu/llama_index","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2023-148.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-2xxc-73fv-36f7","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-10-08T20:26:03.538Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-39662","url":"https://www.cve.org/CVERecord?id=CVE-2023-39662","licence":"CVE Terms of Use","modified":"2024-10-08T20:26:15.681Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2xxc-73fv-36f7","url":"https://github.com/advisories/GHSA-2xxc-73fv-36f7","licence":"CC-BY-4.0","modified":"2024-09-30T16:44:07.061Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-39662","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39662","licence":"Public domain","modified":"2026-06-17T06:12:41.370Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-148","url":"https://osv.dev/vulnerability/PYSEC-2023-148","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:55.576Z"}],"updatedAt":"2026-11-25T22:58:27.142Z","epss":{"score":0.0148,"percentile":0.74675,"date":"2026-12-01T12:00:22.000Z"}}