high7.5
CVE-2025-45691
RAGAS has an Arbitrary File Read vulnerability
Impact
An Arbitrary File Read vulnerability exists in the ImageTextPromptValue class in Exploding Gradients RAGAS v0.2.3 to v0.2.14. The vulnerability stems from improper validation and sanitization of URLs supplied in the retrieved_contexts parameter when handling multimodal inputs.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | ragas | >= 0.2.3, < 0.3.0-rc1 | 0.3.0-rc1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vibrantlabsai | Ragas | from 0.2.3 through 0.2.14 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://adithyanak.com/ragas-v0214-arbitrary-file-read-vulnerability
- https://github.com/explodinggradients/ragas/blob/e97886ac976465efb60e5949c5d69baf30cc811d/src/ragas/prompt/multi_modal_prompt.py#L202
- https://github.com/explodinggradients/ragas/pull/1559
- https://github.com/vibrantlabsai/ragas/pull/1991
- https://access.redhat.com/security/cve/CVE-2025-45691
- https://bugzilla.redhat.com/show_bug.cgi?id=2444875
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-45691.json
- https://github.com/advisories/GHSA-v2xr-wvrv-p969
- https://nvd.nist.gov/vuln/detail/CVE-2025-45691
- https://github.com/vibrantlabsai/ragas/commit/b28433709cbedbb531db79dadcfbdbd3aa6adcb0