Vulnerabilities in pkg:golang/github.com/lf-edge/ekuiper/v2

PACKAGE
Advisory Identifier: GHSA-c23q-fw86-9h5x
Advisory Summary

CVE-2025-58363 is a MODERATE (CVSS 5.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting LF Edge eKuiper libraries in the Go ecosystem. The issue involves arbitrary file and directory deletion via path traversal in plugin installation endpoint. Remediation is available by upgrading affected packages to version 2.4.1.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/lf-edge/ekuiper/v2

9 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/lf-edge/ekuiper/v2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c23q-fw86-9h5x CVE-2025-58363 MODERATE LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint
GHSA-pqqc-8v73-9gg2 CVE-2025-24979 MODERATE LF Edge eKuiper: SSRF in External Service
GHSA-g8rh-fjm6-h2h9 CVE-2025-24978 LOW LF Edge eKuiper: Self-XSS in External Service Creation
GHSA-rj4j-2jph-gg43 - CRITICAL LF Edge eKuiper is vulnerable to Arbitrary File Read/Write via unsanitized names and zip extraction
GHSA-526j-mv3p-f4vv CVE-2025-54379 HIGH eKuiper API endpoints handling SQL queries with user-controlled table names.
GHSA-gj54-gwj9-x2c6 - HIGH eKuiper /config/uploads API arbitrary file writing may lead to RCE
GHSA-fv2p-qj5p-wqq4 - HIGH LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
GHSA-9cwv-pxcr-hfjc CVE-2024-52290 MODERATE LF Edge eKuiper Vulnerable to Stored XSS in Configuration Key Functionality
GHSA-6hrw-x7pr-4mp8 CVE-2024-52812 MODERATE LF Edge eKuiper allows Stored XSS in Rules Functionality

CVE-2025-58363 at a Glance

CVE Identifier CVE-2025-58363
GHSA Identifier GHSA-c23q-fw86-9h5x
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product LF Edge eKuiper
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2025-58363

To remediate this vulnerability, upgrade all affected LF Edge eKuiper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/lf-edge/ekuiper/v2 fixed: 2.4.1
Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/lf-edge/ekuiper/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-58363, inspect your project dependencies for LF Edge eKuiper:

inspect dependencies for github.com/lf-edge/ekuiper/v2

Analyze the terminal output to locate any version of LF Edge eKuiper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In LF Edge eKuiper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A path traversal vulnerability in eKuiper's administrative management endpoints allows privileged users or attackers with access to management APIs to delete arbitrary files or directories on the host system. ### Details In `internal/plugin/native/manager.go`, the plugin installation endpoint (`POST /plugins/*`) constructs a temporary directory path by directly joining user-supplied resource names (`name`) without sufficient sanitization. Supplying path traversal sequences (such as `../../...`) causes the deferred cleanup operation (`os.RemoveAll`) to target arbitrary directories outside the intended plugin directory. A related issue in configuration and rule lifecycle management where unvalidated rule identifiers could influence file deletion paths was also addressed by introducing unified identifier and file name validation. ### PoC 1. Target file deletion via plugin installation endpoint: ```http POST /plugins/sources HTTP/1.1 Host: 127.0.0.1:9081 Content-Type: application/json { "name": "../../../../../tmp/target.txt", "file": "http://example.com/plugin.zip", "shellParas": [], "functions": [] } ``` 2. When the request finishes, `/tmp/target.txt` is removed by `os.RemoveAll`. ### Impact An attacker with access to eKuiper management APIs can cause arbitrary file or directory deletion, potentially leading to denial of service or disruption of the host environment. This vulnerability provides a delete-only capability and does not permit arbitrary file creation, modification, or code execution. ### Remediation & Patches - **Upgrade to eKuiper >= 2.4.1**: Input validation (`validate.ValidateID`) and file path validation (`path.VerifyFileName`) have been enforced across management endpoints. ### Workarounds - Restrict network access to eKuiper management port (`9081`) via authentication, reverse proxies, and firewall rules. - Run eKuiper with a dedicated non-root user account to limit file system deletion permissions. ### Credits - @kosmosec - @arpitjain099

CVE-2025-58363 Affected LF Edge eKuiper Versions

1 component(s)
Fixed Versions:
2.4.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/lf-edge/ekuiper/v2
Go
< 2.4.1
2.4.1

References

Frequently Asked Questions

What is CVE-2025-58363?
CVE-2025-58363 is a security vulnerability in LF Edge eKuiper involving Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which LF Edge eKuiper versions are affected?
Affected versions include releases prior to 2.4.1 across affected packages: github.com/lf-edge/ekuiper/v2.
What version fixes CVE-2025-58363?
Upgrading to 2.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/lf-edge/ekuiper/v2 affected?
Yes, github.com/lf-edge/ekuiper/v2 is affected in releases prior to 2.4.1. Upgrade your dependency to 2.4.1 or later.
What is the CVSS score of CVE-2025-58363?
CVE-2025-58363 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2025-58363?
CVE-2025-58363 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Go dependencies for CVE-2025-58363?
Run the dependency tree command: 'inspect dependencies for github.com/lf-edge/ekuiper/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c23q-fw86-9h5x",
  "modified" : "2026-09-09T17:59:27Z",
  "published" : "2026-09-09T17:59:27Z",
  "aliases" : [ "CVE-2025-58363" ],
  "summary" : "LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint",
  "details" : "### Summary\nA path traversal vulnerability in eKuiper's administrative management endpoints allows privileged users or attackers with access to management APIs to delete arbitrary files or directories on the host system.\n\n### Details\nIn `internal/plugin/native/manager.go`, the plugin installation endpoint (`POST /plugins/*`) constructs a temporary directory path by directly joining user-supplied resource names (`name`) without sufficient sanitization. Supplying path traversal sequences (such as `../../...`) causes the deferred cleanup operation (`os.RemoveAll`) to target arbitrary directories outside the intended plugin directory.\n\nA related issue in configuration and rule lifecycle management where unvalidated rule identifiers could influence file deletion paths was also addressed by introducing unified identifier and file name validation.\n\n### PoC\n1. Target file deletion via plugin installation endpoint:\n```http\nPOST /plugins/sources HTTP/1.1\nHost: 127.0.0.1:9081\nContent-Type: application/json\n\n{\n  \"name\": \"../../../../../tmp/target.txt\",\n  \"file\": \"http://example.com/plugin.zip\",\n  \"shellParas\": [],\n  \"functions\": []\n}\n```\n2. When the request finishes, `/tmp/target.txt` is removed by `os.RemoveAll`.\n\n### Impact\nAn attacker with access to eKuiper management APIs can cause arbitrary file or directory deletion, potentially leading to denial of service or disruption of the host environment. This vulnerability provides a delete-only capability and does not permit arbitrary file creation, modification, or code execution.\n\n### Remediation & Patches\n- **Upgrade to eKuiper >= 2.4.1**: Input validation (`validate.ValidateID`) and file path validation (`path.VerifyFileName`) have been enforced across management endpoints.\n\n### Workarounds\n- Restrict network access to eKuiper management port (`9081`) via authentication, reverse proxies, and firewall rules.\n- Run eKuiper with a dedicated non-root user account to limit file system deletion permissions.\n\n### Credits\n- @kosmosec\n- @arpitjain099",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/lf-edge/ekuiper/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lf-edge/ekuiper/security/advisories/GHSA-c23q-fw86-9h5x"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lf-edge/ekuiper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lf-edge/ekuiper/releases/tag/v2.4.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-09T17:59:27Z",
    "nvd_published_at" : null
  }
}