CVE Explorer
CVE-2026-45312
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In 0.24.0 and earlier, a Jinja2 template injection in the prompt generator (rag/prompts/generator.py) allows any authenticated user to execute arbitrary OS commands on the server. Any normal user can register, create a Canvas workflow with a DuckDuckGo + LLM component chain, and trigger the SSTI.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"ragflow","vendor":"infiniflow","versions":[{"status":"affected","version":"<= 0.24.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0fba544c462f1cd4f105f7c817357e4e4a8b7c00b2904829b195634071a7eacd · sha256:a6ff0fa5f1263147… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0fba544c462f1cd4f105f7c817357e4e4a8b7c00b2904829b195634071a7eacd · sha256:a6ff0fa5f1263147… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0fba544c462f1cd4f105f7c817357e4e4a8b7c00b2904829b195634071a7eacd · sha256:a6ff0fa5f1263147… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0fba544c462f1cd4f105f7c817357e4e4a8b7c00b2904829b195634071a7eacd · sha256:a6ff0fa5f1263147… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0fba544c462f1cd4f105f7c817357e4e4a8b7c00b2904829b195634071a7eacd · sha256:a6ff0fa5f1263147… · /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.