CWE
434 89
Advisory Published
Advisory Published
Updated

CVE-2024-10901: Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt

First published: Thu Mar 20 2025(Updated: )

In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /api/v1/editor/chart/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE) by writing malicious files such as `__init__.py` in the Python's `/site-packages/` directory.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
eosphoros-ai db-gpt
pip/dbgpt<=0.6.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-10901?

    CVE-2024-10901 is considered a critical vulnerability due to its potential for arbitrary SQL execution and file write capabilities.

  • How do I fix CVE-2024-10901?

    To mitigate CVE-2024-10901, it is recommended to immediately apply access controls to the API endpoint and validate SQL inputs.

  • What is the impact of CVE-2024-10901?

    The impact of CVE-2024-10901 includes potential unauthorized access to sensitive data and the ability for attackers to modify files on the server.

  • Which versions of db-gpt are affected by CVE-2024-10901?

    CVE-2024-10901 affects version v0.6.0 of eosphoros-ai/db-gpt.

  • Can CVE-2024-10901 be exploited remotely?

    Yes, CVE-2024-10901 can be exploited remotely through the vulnerable API without requiring prior access.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203