CVE Explorer
CVE-2025-6209
A path traversal vulnerability exists in run-llama/llama_index versions 0.12.27 through 0.12.40, specifically within the `encode_image` function in `generic_utils.py`. This vulnerability allows an attacker to manipulate the `image_path` input to read arbitrary files on the server, including sensitive system files. The issue arises due to improper validation or sanitization of the file path, enabling path traversal sequences to access files outside the intended directory. The vulnerability is fix
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"run-llama/llama_index","vendor":"run-llama","versions":[{"lessThan":"0.12.41","status":"affected","version":"unspecified","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"metric_type":"cvssV3_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/cna/metrics/0/cvssV3_0
CWE assertions
1 source assertion{"cweId":"CWE-29","description":"CWE-29 Path Traversal: '\\..\\filename'","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"url":"https://github.com/run-llama/llama_index/commit/cdeaab91a204d1c3527f177dac37390327aef274"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/cna/references/1
{"url":"https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://huntr.com/bounties/e89d14f8-bfe8-4c9a-bb2a-656c01cc9a68"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:68bc8964554f5e1fc9807f0630dba21580f3f34a7ac243142ba11a8b21011cc6 · sha256:d74b04a37d5c9171… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.