8.9high
eKuiper API endpoints handling SQL queries with user-controlled table names.
- Severity
- 8.9high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.87% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-526j-mv3p-f4vvGO-2025-3827PYSEC-2025-241
Description
LF Edge eKuiper is a lightweight IoT data analytics and stream processing engine running on resource-constraint edge devices. In versions before 2.2.1, there is a critical SQL Injection vulnerability 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. This is fixed in version 2.2.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lf-edge ekuiper | < 2.2.1 | CVE List |
| github.com/lf-edge/ekuiper/v2 (Go) | before 2.2.1 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/lf-edge/ekuiper (Go) | up to 1.14.7, all versions | GitHub Advisory Database, Go Vulnerability Database |
| lfedge ekuiper | 2.1.5 | NVD |
| ekuiper (PyPI) | up to 2.1.5 | PyPA Advisory Database |
All scores
| GitHub_M | 8.9high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
LF Edge eKuiper is a lightweight IoT data analytics and stream processing engine running on resource-constraint edge devices. In versions before 2.2.1, there is a critical SQL Injection vulnerability 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. This is fixed in version 2.2.1.
GitHub Advisory Database
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
Go Vulnerability Database
eKuiper API endpoints handling SQL queries with user-controlled table names. in github.com/lf-edge/ekuiper
NVD (es)
LF Edge eKuiper es un motor ligero de análisis de datos y procesamiento de flujos de IoT que se ejecuta en dispositivos edge con recursos limitados. En versiones anteriores a la 2.2.1, existía una vulnerabilidad crítica de inyección SQL en la API getLast del proyecto eKuiper. Esta falla permite a atacantes remotos no autenticados ejecutar sentencias SQL arbitrarias en la base de datos SQLite subyacente manipulando el nombre de la tabla en una solicitud de API. Su explotación puede provocar el robo, la corrupción o la eliminación de datos, así como la vulneración total de la base de datos. Esto se ha corregido en la versión 2.2.1.
References
| https://github.com/lf-edge/ekuiper/security/advisories/GHSA-526j-mv3p-f4vv | advisory, evidence, exploit, vendor-advisory, web | |
| https://github.com/lf-edge/ekuiper/commit/72c4918744934deebf04e324ae66933ec089ebd3 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-54379 | advisory | |
| https://github.com/lf-edge/ekuiper | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54379 changed 2025-07-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-526j-mv3p-f4vv changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3827 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2025-54379 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-241 changed 2026-07-13 | CC-BY-4.0 |