# CVE-2025-27135: RAGFlow SQL Injection vulnerability

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-02-25T18:16:58.667Z
- Modified: 2026-06-17T09:03:04.650Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. Versions 0.15.1 and prior are vulnerable to SQL injection. The ExeSQL component extracts the SQL statement from the input and sends it directly to the database query. As of time of publication, no patched version is available.

(As written by CVE List.)

## Affected

- infiniflow ragflow: <= 0.15.1; up to 0.15.1

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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/E:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://swizzky.notion.site/ragflow-exesql-150ca6df7c03806989cefde915cf8e42?pvs=4> (exploit)
- <https://swizzky.notion.site/ragflow-exesql-150ca6df7c03806989cefde915cf8e42> (exploit)
- <https://github.com/infiniflow/ragflow/security/advisories/GHSA-3gqj-66qm-25jq> (vendor-advisory)
- <https://github.com/infiniflow/ragflow/blob/v0.15.1/agent/component/exesql.py> (product)

## Sources

- CVE List: [CVE-2025-27135](https://www.cve.org/CVERecord?id=CVE-2025-27135), CVE Terms of Use, modified 2025-02-25
- NVD: [CVE-2025-27135](https://nvd.nist.gov/vuln/detail/CVE-2025-27135), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27135 · Whole record: https://cve.day/CVE-2025-27135.json · Rebuilt by cve.day 2026-11-25T22:58:54.427Z
