github.com/lf-edge/ekuiper/v2
Affected
- introduced
0, fixed2.4.1(semver)
Fixed versions
2.4.1
Fix
- Fixed version
2.4.1go get github.com/lf-edge/ekuiper/[email protected]
Advisory
Also known as: CVE-2025-58363, GO-2026-6445
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.
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
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": []
}
/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
validate.ValidateID) and file path validation (path.VerifyFileName) have been enforced across management endpoints.Workarounds
9081) via authentication, reverse proxies, and firewall rules.Credits
Medium Basis: The source's own band: MODERATE
0, fixed 2.4.1 (semver)2.4.1
2.4.1go get github.com/lf-edge/ekuiper/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0