CVE-2025-58363: LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint
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.
Published Sep 9, 2026
Affected packages
github.com/lf-edge/ekuiper/v2
- Ecosystem
- Go
- Affected
- < 2.4.1
- Fixed in
- 2.4.1
- Check
go list -m github.com/lf-edge/ekuiper/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- Target file deletion via plugin installation endpoint:
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": []
}- When the request finishes,
/tmp/target.txtis removed byos.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
Credited to kosmosec.
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, 2026GHSA-rj4j-2jph-gg43
LF Edge eKuiper is vulnerable to Arbitrary File Read/Write via unsanitized names and zip extraction
critical9.3Nov 24, 2025CVE-2025-54379
eKuiper API endpoints handling SQL queries with user-controlled table names.
high8.9No fixJul 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
