# CVE-2026-49951: RAGFlow < 0.27.0 SSRF via set_api_key base_url Parameter

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-06T16:09:16.028Z
- Modified: 2026-11-09T23:17:23.073Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

RAGFlow before 0.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to force the server to issue requests to arbitrary internal or external endpoints by supplying an unvalidated base_url to the POST /v1/llm/set_api_key endpoint handled by set_api_key() in api/apps/llm_app.py. Attackers can exploit this flaw to probe shared-network services such as MySQL, Elasticsearch, Redis, MinIO, the Infinity vector database, and cloud metadata endpoints, with raw upstream exception text returned in the response leaking internal service details, open ports, and configuration fingerprints.

(As written by CVE List.)

## Affected

- infiniflow ragflow: before 0.27.0

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/infiniflow/ragflow/releases#release-v0.27.0> (release-notes)
- <https://github.com/infiniflow/ragflow/pull/17641> (issue-tracking, patch)
- <https://github.com/infiniflow/ragflow/commit/b058229ab3a79cc2d61bc1724c2e120ce2ede46d> (patch)
- <https://www.vulncheck.com/advisories/ragflow-ssrf-via-set-api-key-base-url-parameter> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-49951](https://www.cve.org/CVERecord?id=CVE-2026-49951), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-49951](https://nvd.nist.gov/vuln/detail/CVE-2026-49951), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-49951 · Whole record: https://cve.day/CVE-2026-49951.json · Rebuilt by cve.day 2026-11-25T22:59:49.296Z
