{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28797 exists.","fix":"No fix has been published for CVE-2026-28797 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-28797 is a high-severity code injection vulnerability in infiniflow ragflow, published on 3 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-28797 and fix it if it is affected.\n\nWhat it is: CVE-2026-28797 is a high-severity code injection vulnerability in infiniflow ragflow, published on 3 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28797 exists.\n\nAffected product: infiniflow ragflow. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-28797/ (Markdown: https://insights.sbomify.com/CVE-2026-28797/index.md)","id":"CVE-2026-28797","markdown":"https://insights.sbomify.com/CVE-2026-28797/index.md","name":"CVE-2026-28797","record":{"aliases":["GHSA-vvwj-fvwh-4whx"],"analysis":{"component_type":"web_application","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"RAGFlow RAG engine","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary OS commands via SSTI in RAGFlow's Text Processing components due to unsandboxed Jinja2 template rendering.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ragflow","vendor":"infiniflow"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-Side Template Injection (SSTI) vulnerability exists in RAGFlow's Agent workflow Text Processing (StringTransform) and Message components. These components use Python's jinja2.Template (unsandboxed) to render user-supplied templates, allowing any authenticated user to execute arbitrary operating system commands on the server. At time of publication, there are no publicly available patches.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-08-11","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-11T02:36:51Z","kind":"github_poc","ref":"https://github.com/qianlijaingshan/ragflow-audit","stars":1,"title":"RAGFlow 三洞审计工具 (CVE-2026-28797 / CVE-2026-24770 / CVE-2025-69286)"}],"tier":"weaponised"},"has_fix":false,"headline":"Code injection in ragflow","id":"CVE-2026-28797","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Arbitrary internal service access via /v1/sys/proxy when Cloudflare Tunnel is enabled on ZimaOS","id":"CVE-2026-28798"},"packages":[],"prev":{"headline":"OpenChatBI: Critical Path Traversal Vulnerability in save_report Tool of OpenChatBI","id":"CVE-2026-28795"},"products":["ragflow"],"published":"2026-04-03","related":[{"cvss_score":9.8,"headline":"RAGFlow Affected by Zip Slip Remote Code Execution (RCE) in MinerUParser","id":"CVE-2026-24770","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":9.8,"headline":"Remote Code Execution in infiniflow/ragflow","id":"CVE-2024-12433","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.1,"headline":"Auth bypass in RAGFlow","id":"CVE-2025-48187","kev_date_added":null,"published":"2025-05-17"},{"cvss_score":8.9,"headline":"RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability","id":"CVE-2025-69286","kev_date_added":null,"published":"2025-12-31"},{"cvss_score":8.9,"headline":"RAGFlow SQL Injection vulnerability","id":"CVE-2025-27135","kev_date_added":null,"published":"2025-02-25"},{"cvss_score":8.8,"headline":"Remote Code Execution in infiniflow/ragflow","id":"CVE-2024-10131","kev_date_added":null,"published":"2024-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-06","vendors":["infiniflow"]},"summary":"Authenticated users can execute arbitrary OS commands via SSTI in RAGFlow's Text Processing components due to unsandboxed Jinja2 template rendering.","url":"https://insights.sbomify.com/CVE-2026-28797/"}