{"answers":{"affected":"7 open source packages ship an affected version, including github.com/lf-edge/ekuiper, github.com/lf-edge/ekuiper/v2 and ekuiper. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54379 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-54379 is a high-severity SQL injection vulnerability in lf-edge ekuiper, published on 24 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54379 and fix it if it is affected.\n\nWhat it is: CVE-2025-54379 is a high-severity SQL injection vulnerability in lf-edge ekuiper, published on 24 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54379 exists.\n\nAffected packages and fixed versions:\n- github.com/lf-edge/ekuiper (Go): affected all versions; no fix listed\n- github.com/lf-edge/ekuiper (Go): affected all versions up to 1.14.7; no fix listed\n- github.com/lf-edge/ekuiper (Go): affected all versions up to 1.14.7; no fix listed\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.2.1\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.2.1\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.2.1\n- ekuiper (PyPI): affected all versions up to 2.1.5; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54379/ (Markdown: https://insights.sbomify.com/CVE-2025-54379/index.md)","id":"CVE-2025-54379","markdown":"https://insights.sbomify.com/CVE-2025-54379/index.md","name":"CVE-2025-54379","record":{"aliases":["GHSA-526j-mv3p-f4vv","GO-2025-3827","PYSEC-2025-241"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"IoT stream processing engine","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary SQL commands via manipulated table names in API requests, leading to database compromise.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ekuiper","vendor":"lfedge"}],"cvss":{"score":8.9,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["Go","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"eKuiper API endpoints handling SQL queries with user-controlled table names.","id":"CVE-2025-54379","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":7,"n_references":2,"next":{"headline":"Opencast still publishes global system account credentials","id":"CVE-2025-54380"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper","purl":"pkg:golang/github.com/lf-edge/ekuiper","source":"GO-2025-3827"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.7"],"package":"github.com/lf-edge/ekuiper","purl":null,"source":"GHSA-526j-mv3p-f4vv"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.7"],"package":"github.com/lf-edge/ekuiper","purl":"pkg:golang/github.com/lf-edge/ekuiper","source":"GHSA-526j-mv3p-f4vv"},{"ecosystem":"Go","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":null,"source":"GHSA-526j-mv3p-f4vv"},{"ecosystem":"Go","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"GHSA-526j-mv3p-f4vv"},{"ecosystem":"Go","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"GO-2025-3827"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.1.5"],"package":"ekuiper","purl":"pkg:pypi/ekuiper","source":"PYSEC-2025-241"}],"prev":{"headline":"HAX CMS Backend Lacks Comprehensive Authorization Checks","id":"CVE-2025-54378"},"products":["ekuiper"],"published":"2025-07-24","related":[{"cvss_score":8.8,"headline":"LF Edge eKuiper has a SQL Injection in sqlKvStore","id":"CVE-2024-43406","kev_date_added":null,"published":"2024-08-20"},{"cvss_score":6.3,"headline":"Stored XSS in Configuration Key Functionality","id":"CVE-2024-52290","kev_date_added":null,"published":"2025-05-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-07-25","vendors":["lf-edge"]},"summary":"Unauthenticated attackers can execute arbitrary SQL commands via manipulated table names in API requests, leading to database compromise.","url":"https://insights.sbomify.com/CVE-2025-54379/"}