LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Summary Path traversal is also known as directory traversal. These vulnerabilities enable an attacker to read arbitrary files on the server that is running an application. In this case, an attacker might be able to write to arbitrary files on the server, allowing them to modify application data or behavior, and ultimately take full control of the server. ### Details The file handler function trusts the filename provided by the user. This includes the cases when the user uses a path instead of the filename. This makes possible to write arbitrary files to the system and **replace** the files owned by _kuiper_ user on the filesystem. The vulnerable function is `fileUploadHandler` which is shown below: https://github.com/lf-edge/ekuiper/blob/1e6b6b6601445eb05316532f5fbef7f0a863ecfe/internal/server/rest.go#L329-L359 Exploitation of this vulnerability allows an attacker to rewrite the files owned by ekuiper including the main kuiper binaries as they are owned by _kuiper_ user:  ### PoC 0. The files should be uploaded to `/kuiper/data/uploads` directory. So let's move to the `/kuiper/data`, examine the existing files and create an empty `traversal-poc` file owned by _kuiper_:  1. Now, we can go to _Services > Configuration > File Management_ and try to upload file with name `../test`:   In the response we can see the path of the uploaded file and can assume that the traversal worked. 2. Now we can try to change the `traversal-poc` file that we know exists on the server. It can be made with the following request:  3. Now, if we look at the server, we can see the file created in the traversed directory and the replaced poc-file:  ### Impact - Possibility to upload files to external directories; - Possibility to rewrite any file owned by _kuiper_ user on the filesystem. Reported by Alexey Kosmachev, Lead Pentester from Bi.Zone
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/lf-edge/ekuiper/v2 (Go) | before 2.2.0 | 2.2.0 | Patch available | GHSA-fv2p-qj5p-wqq4 |
| — | github.com/lf-edge/ekuiper (Go) | up to 1.14.7 | — | No fix listed | GHSA-fv2p-qj5p-wqq4 |
- github.com/lf-edge/ekuiper/v2 (Go) Vendor— Affected before 2.2.0 Fixed in 2.2.0 Patch available GHSA-fv2p-qj5p-wqq4
- github.com/lf-edge/ekuiper (Go) Vendor— Affected up to 1.14.7 Fixed in — No fix listed GHSA-fv2p-qj5p-wqq4
Remediation
- Fix · GHSA-fv2p-qj5p-wqq4 github.com/lf-edge/ekuiper/v2 (Go) Fixed in 2.2.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-fv2p-qj5p-wqq4
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences