# CVE-2025-58363: LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-22
- **Aliases:** GHSA-c23q-fw86-9h5x, GO-2026-6445
- **Published:** 2026-09-09T17:59:27.000Z
- **Modified:** 2026-09-17T17:40:41.050Z

## Who should check

- Projects that depend on Go package github.com/lf-edge/ekuiper/v2 (\< 2.4.1)
- Projects that depend on Go package github.com/lf-edge/ekuiper

## Description

\#\#\# 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

## Affected and fixed versions

- Go `github.com/lf-edge/ekuiper/v2`: affected \< 2.4.1; fixed 2.4.1 (osv)
- Go `github.com/lf-edge/ekuiper`: affected see advisory; fixed no fix listed yet (osv)

## Mitigation

- Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-58363. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-58363.md
Affected: github.com/lf-edge/ekuiper/v2 < 2.4.1; github.com/lf-edge/ekuiper
Fixed in: 2.4.1

Steps:
1. Search this machine and project for github.com/lf-edge/ekuiper/v2 (Go), github.com/lf-edge/ekuiper (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-58363 being exploited?

There is no confirmed exploitation: CVE-2025-58363 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2025-58363?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-58363?

github.com/lf-edge/ekuiper/v2 \< 2.4.1; github.com/lf-edge/ekuiper.

### Is there a fix for CVE-2025-58363?

Yes. Fixed in 2.4.1. Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.1 or later.

### How do I check if I'm affected by CVE-2025-58363?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/lf-edge/ekuiper/security/advisories/GHSA-c23q-fw86-9h5x>
- other: <https://github.com/lf-edge/ekuiper>
- other: <https://github.com/lf-edge/ekuiper/releases/tag/v2.4.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c23q-fw86-9h5x> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6445> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-58363> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-58363>
