# CVE-2023-49795: MindsDB server-side request forgery in file upload

Source: https://junglewise.ai/threats/cve-2023-49795-mindsdb-server-side-request-forgery-in-file-upload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-12-11. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2023-49795 · Severity: low · CVSS 3.1 · Published 2023-12-11

MindsDB is an open-source AI database platform that allows users to upload data files for analysis. The platform fails to validate user-supplied URLs when processing file uploads, allowing an attacker to forge network requests from the MindsDB server to internal systems. This could enable port scanning of internal networks, data exfiltration of accessible files, or reconnaissance for further attacks on infrastructure that should not be directly reachable from outside.

Technologies: [mindsdb (PyPI)](https://junglewise.ai/threats/technologies/mindsdb). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-49795 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-49795 being exploited in the wild.

**How severe is CVE-2023-49795?** Low severity, with a CVSS score of 3.1, published 11 December 2023.

**Which products and versions are affected?** mindsdb (PyPI) ECOSYSTEM:introduced=0,fixed=23.11.4.1, GIT:introduced=0,fixed=8d13c9c28ebcf3b36509eb679378004d4648d8fe|ECOSYSTEM:introduced=0,fixed=23.11.4.1.

**Is there a fix for CVE-2023-49795?** Yes. mindsdb (PyPI): upgrade to 23.11.4.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2023-49795 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2023-49795?** Check whether you run mindsdb (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mindsdb (PyPI): upgrade to 23.11.4.1 or later

  ```sh
  pip install "mindsdb>=23.11.4.1"
  ```


## Technical details

A server-side request forgery (SSRF) vulnerability exists in the PUT method of mindsdb/mindsdb/api/http/namespaces/file.py. The vulnerable code on line 115 fails to validate the user-controlled URL in the source variable before using it to create arbitrary HTTP requests. An unauthenticated network attacker can exploit this to forge requests from the MindsDB server to arbitrary hosts and ports. The attacker can scan internal network ranges for open ports, retrieve files with specific extensions (csv, xls, xlsx, json, parquet) that will be visible in the MindsDB GUI, or perform blind SSRF attacks against other file types. The vulnerability has been patched in version 23.11.4.1.

## Affected products

- MindsDB MindsDB before 23.11.4.1

## Identifiers

- CVE-2023-49795
- GHSA-34mr-6q8x-g9r6
- PYSEC-2023-277

## Timeline

- 2023-12-11: disclosed: NVD published
- 2023-12-12: disclosed: GitHub advisory GHSA-34mr-6q8x-g9r6 published
- 2023-11-04: patched: Fix released in version 23.11.4.1

## References

- [https://github.com/mindsdb/mindsdb/security/advisories/GHSA-34mr-6q8x-g9r6](https://github.com/mindsdb/mindsdb/security/advisories/GHSA-34mr-6q8x-g9r6)

## Related threats

- [PYSEC-2026-2648 - MindsDB has an Improper Access Control Issue](https://junglewise.ai/threats/cve-2026-7711-mindsdb-has-an-improper-access-control-issue)
- [PYSEC-2026-1628 - MindsDB Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2024-45856-mindsdb-cross-site-scripting-in-web-ui)
- [PYSEC-2026-1629 - MindsDB Eval Injection vulnerability](https://junglewise.ai/threats/cve-2024-45847-mindsdb-eval-injection-vulnerability)
- [MindsDB path traversal in /api/files leading to RCE](https://junglewise.ai/threats/cve-2026-27483-mindsdb-path-traversal-in-api-files-leading-to-rce)
- [MindsDB SSRF via URL validation bypass in File Upload](https://junglewise.ai/threats/cve-2026-2531-mindsdb-ssrf-via-url-validation-bypass-in-file-upload)
