CVE-2023-49796: GHSL-2023-182_GHSL-2023-184: Server-side request forgery (SSRF), arbitrary file write and limited file write vulnerabilities in mindsdb/mindsdb - CVE-2023-49795, CVE-2023-50731, CVE-2023-49796

Published Dec 11, 2023
·
Updated

Impact

The put method in mindsdb/mindsdb/api/http/namespaces/file.py does not validate the user-controlled name value, which is used in a temporary file name, which is afterwards opened for writing on lines 122-125, which leads to path injection. This issue may lead to arbitrary file write. This vulnerability allows for writing files anywhere on the server that the filesystem permissions that the running server has access to.

Patches

Use mindsdb staging branch or v23.11.4.1

References

GHSL-2023-184 See CodeQL path injection prevention guidelines and OWASP guidelines.

Other sources

MindsDB connects artificial intelligence models to real time data. Versions prior to 23.11.4.1 contain a limited file write vulnerability in file.py Users should use MindsDB's staging branch or v23.11.4.1, which contain a fix for the issue.

MITRE

Three vulnerabilities that can be exploited by unauthenticated users were found in MindsDB: a Server-side request forgery (SSRF) vulnerability, an arbitrary file write vulnerability and a limited file write vulnerability.

GitHub Security Lab

Affected Software

2 affected componentsFixes available
pip/mindsdb<23.11.4.1
23.11.4.1
MindsDB MindsDB=23.7.4.1

Event History

Dec 11, 2023
CVE Published
via MITRE·08:38 PM
Data Sourced
via MITRE·08:38 PM
DescriptionSeverityWeakness
Dec 12, 2023
Advisory Published
via GitHub·12:49 AM
Dec 21, 2023
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-49796?

The severity of CVE-2023-49796 is considered high due to potential path injection vulnerabilities.

2

How do I fix CVE-2023-49796?

To fix CVE-2023-49796, upgrade the MindsDB package to version 23.11.4.1 or later.

3

Which versions of MindsDB are affected by CVE-2023-49796?

CVE-2023-49796 affects MindsDB versions prior to 23.11.4.1 and version 23.7.4.1.

4

What type of vulnerability is CVE-2023-49796?

CVE-2023-49796 is a path injection vulnerability due to improper validation of user input.

5

Where can I find more information about CVE-2023-49796?

For more information about CVE-2023-49796, refer to the MindsDB GitHub repository and their security advisories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203