Skip to content

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

Server-Side Request Forgery in mindsdb

Medium PyPI
Severity
6.5 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.42%
Chance of exploitation in the next 30 days. Higher than 36.54% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-918 Server-Side Request Forgery (SSRF)
Fix
23.11.4.1
Upgrade mindsdb to this version or later

Description

Impact

The put method in mindsdb/mindsdb/api/http/namespaces/file.py does not validate the user-controlled URL in the source variable and uses it to create arbitrary requests on line 115, which allows Server-side request forgery (SSRF). This issue may lead to Information Disclosure. The SSRF allows for forging arbitrary network requests from the MindsDB server. It can be used to scan nodes in internal networks for open ports that may not be accessible externally, as well as scan for existing files on the internal network. It allows for retrieving files with csv, xls, xlsx, json or parquet extensions, which will be viewable via MindsDB GUI. For any other existing files, it is a blind SSRF.

Patches

Use mindsdb staging branch or v23.11.4.1

References

Affected versions

PyPI

PackageVulnerableFixed in
mindsdb
< 23.11.4.1
23.11.4.1
mindsdb
< 23.11.4.1
23.11.4.1

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

mindsdb PyPI → 23.11.4.1

pip
pip install --upgrade "mindsdb>=23.11.4.1"
poetry
poetry add "mindsdb>=23.11.4.1"
uv
uv add "mindsdb>=23.11.4.1"

Severity breakdown

CVSS 3.1 6.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Weakness

CWE-918: Server-Side Request Forgery (SSRF)

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-9f6m-65v9-x9g2
MindsDB has an Improper Access Control Issue
High Also affects mindsdb
GHSA-4894-xqv6-vrfq
MindsDB: Path Traversal in /api/files Leading to Remote Code Execution
High Also affects mindsdb
GHSA-6xw9-2p64-7622
MindsDB affected by a SSRF vulnerability
High Also affects mindsdb
GHSA-qqhf-pm3j-96g7
MindsDB has improper sanitation of filepath that leads to information disclosure and DOS
Critical Also affects mindsdb
GHSA-32fj-r8qw-r8w8
MindsDB Cross-site Scripting vulnerability
Medium Also affects mindsdb
GHSA-crmg-rp64-5cm3
MindsDB Eval Injection vulnerability
High Also affects mindsdb
GHSA-wf9g-c67g-h4ch
MindsDB Eval Injection vulnerability
High Also affects mindsdb
GHSA-wcjw-3v6p-4v3r
MindsDB Eval Injection vulnerability
High Also affects mindsdb
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor